Похожие чаты

In Ptb code: msg = update.effective_message keyb += [[InlineKeyboardButton(f"{csql.getCaptcha(str(chat.id))[3]}", url="http://t.me/{}?start=captcha_{}_{}".format(bot.username, chat.id, msg.message_id))]] Changing

in telethon:

keyb += [[Button.url(f"{csql.getCaptcha(str(chat.id))[3]}", url="http://t.me/{}?start=captcha_{}_{}".format(sender.username, event.chat_id, event.message_id))]]

Getting Error:

AttributeError: 'Event' object has no attribute 'message_id'. Did you mean: '_message_id'?

11 ответов

22 просмотра

in ptb bot username is there and in telethon user's username if any

event.id

⎞ .·. ⎝ ⎝
event.id

AttributeError: 'Event' object has no attribute 'id'

⎞ .·. ⎝ ⎝
yeah, if you're in ChatAction use event.action_mes...

I have tried to print event ChatAction.Event(action_message=None, original_update=UpdateChannelParticipant(channel_id=1561993353, date=datetime.datetime(2023, 9, 15, 17, 7, 21, tzinfo=datetime.timezone.utc), actor_id=5591734243, user_id=5591734243, qts=261049223, via_chatlist=False, prev_participant=ChannelParticipant(user_id=5591734243, date=datetime.datetime(2023, 9, 15, 16, 58, 30, tzinfo=datetime.timezone.utc)), new_participant=None, invite=None), new_pin=False, new_photo=False, photo=None, user_added=False, user_joined=False, user_left=True, user_kicked=False, unpin=True, created=False, new_title=None, new_score=None)

『𖤍 Lêɠêɳ̃dẞογ ࿐』➙「🇮🇳」
Ok let me try

no need. this one has no message id, because there is no message, there is message "User x joined/left" at smaller chats and when no participants are hidden, this one is equivalent of ChatMemberUpdated

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта