-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
Hi guys!,
How to achieve this?
- I have added a bot as an admin to a public channel.
- I have tried this:
@bot.command("channelstatus")
def channelstatus_command(chat, message, args):
"""shows the channel status of a user - joined or not"""
status = chat.status_of(message.sender.username)
chat.send("*%s*" % status)It is showing this error:
File "app/bot.py", line 491, in channelstatus_command
status = chat.status_of(message.sender.username)
File "/app/.heroku/python/lib/python3.6/site-packages/botogram/objects/chats.py", line 213, in status_of
raise TypeError("Not available in private chats or channels")
TypeError: Not available in private chats or channelsCan anyone please help me with this?