you can Google it's source code or inspect the site, and don't discuss it in this chat
Читать полностью…i quoted your code. which didn't follow original one in this part too.
so make it, if not hasattr()
@client.on(events.NewMessage(chats=-1002160123806))Читать полностью…
@client.on(events.Album(chats=-1002160123806))
async def handler(event):
messages = ["bb", "ponyatno", "kruto",
"ANTONY GOAT", "ashaletttt 🔥", "imbaa"]
# Check if the message is from the user with ID 123
if event.sender_id == 6341937942:
random_message = random.choice(messages)
if hasattr(event, 'messages') and event.grouped_id:
return
# Reply to the user
await event.reply(random_message, reply_to=event.message.id)
if hasattr(event, 'messages') and event.grouped_id:
return
await event.reply(random_message)
When I print the result of ReportPeerRequest it shows <coroutine object UserMethods.__call__ at 0x000001DB30A931F0>
but it is supposed to be a bool
, why is it so ?
How do I listen to event when my bot was added by someone to some group? Is it ChatAction event?
Читать полностью…Telegram doesn't want you seeing them. just look at the location of city instead or login again and see the message telegram chat
Читать полностью…