Похожие чаты

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 ответов

5 просмотров

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

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

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

Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
32
А чем вам питонисты не угодили?😂
.
79
Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
Язык Си можно выучить за день? По книжке ANSI C на 230 страниц
Vincent Vegan
29
Привет, запускаю werf в dind в k8s, получаю ошибку на этапе build/beforeSetup: /.werf/stapel/embedded/bin/bash: /.werf/scripts/5898bdfe5214357d3706b879cc8d3d78460fb379607cbd...
florius0
7
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
пацаны, как-нибудь можно панель задач заблюрить, что она была похожа на kde или винду 7, 11?
В
16
or do they all have 240?
Ilnur Zaripov
9
HI. Just reviewd Planck website which looks undercooked and some menu is not leading to correct section of site. Also, the vesting is shown to be for 20 months starting next y...
Neo517
4
Дорогие любители Прекрасной Джулии! Есть кто-то имеющий практический опыт построения ML для Систем Управления? Нам нужно сделать нейросеть для автоматической подстройки пара...
Roman Timo
4
Карта сайта