I’m not very fond of telethon (and python in general) but I’m creating a userbot and I have been struggling really hard with this one: so the code is generated with chatGPT but it seems I cannot get out of it.
the array is this:
"buongiorno": {
"source_chat_id": -4246850676,
"destination_chat_ids": [
-1002203752808,
-1002203491711,
-1002199864533,
-1002181194681,
-4284792983,
-1002242584778
]
}
In the chat_id “-4284792983
” I’m muted, and in the chat_id “-1002242584778
” I’m muted until 1 month is passed.
the code to check if I’m muted (can be a group, a supergroup or a channel) is this:
async def is_muted(client, chat_id):
try:
peer = await client.get_input_entity(chat_id)
full_chat = None
my_rights = None
banned_rights = None
default_banned_rights = None
if isinstance(peer, InputPeerChannel):
full_chat = await client(GetFullChannelRequest(peer))
logging.info(f"Full channel info for {chat_id}: {full_chat}")
my_rights = getattr(full_chat.full_chat, 'admin_rights', None)
banned_rights = getattr(full_chat.full_chat, 'banned_rights', None)
default_banned_rights = getattr(full_chat.full_chat, 'default_banned_rights', None)
elif isinstance(peer, InputPeerChat):
full_chat = await client(GetFullChatRequest(peer.chat_id))
logging.info(f"Full chat info for {chat_id}: {full_chat}")
my_rights = getattr(full_chat.full_chat, 'admin_rights', None)
banned_rights = getattr(full_chat.full_chat, 'default_banned_rights', None)
else:
raise TypeError("Unsupported peer type")
logging.info(f"My rights for {chat_id}: {my_rights}")
logging.info(f"Banned rights for {chat_id}: {banned_rights}")
logging.info(f"Default banned rights for {chat_id}: {default_banned_rights}")
if my_rights and not my_rights.send_messages:
logging.info(f"Chat {chat_id} is muted by admin rights")
return True, None
until_date = None
for rights in [banned_rights, default_banned_rights]:
if rights and rights.send_messages:
rights_until_date = getattr(rights, 'until_date', None)
if rights_until_date:
rights_until_date = datetime.datetime.fromtimestamp(rights_until_date)
if not until_date or rights_until_date > until_date:
until_date = rights_until_date
if until_date:
logging.info(f"Chat {chat_id} is muted until {until_date}")
return True, until_date
logging.info(f"Chat {chat_id} is not muted")
return False, None
except errors.RPCError as e:
log_error(f"RPCError in is_muted: {e}")
return False, None
except AttributeError as e:
log_error(f"AttributeError in is_muted: {e}")
return False, None
except TypeError as e:
log_error(f"TypeError in is_muted: {e}")
return False, None
which is then checked with this command
client.on(events.NewMessage(pattern=r'.buongiorno-status'))(buongiorno_status)
that calls for this code:
async def buongiorno_status(event):
config = load_config()
me = await event.client.get_me()
status = "🟢 Buongiorno attivo" if active_buongiorno_timers else "🔴 Buongiorno non attivo"
source_chat_id = config["buongiorno"].get("source_chat_id", "N/A")
source_chat_title = await get_chat_title(event.client, source_chat_id) if source_chat_id != "N/A" else "N/A"
response = f"📋 **Stato Buongiorno**nn"
response += f"🔄 Stato: {status}n"
response += f"📡 Chat Sorgente: **{source_chat_title}** (`{source_chat_id}`)nn"
destination_chat_ids = config["buongiorno"].get("destination_chat_ids", [])
last_sent = config["buongiorno"].get("last_sent", {})
if not destination_chat_ids:
response += "📋 Nessuna chat destinataria."
else:
response += "📋 Chat Destinatarie:nn"
for chat_id in destination_chat_ids:
chat_title = await get_chat_title(event.client, chat_id)
last_sent_time = last_sent.get(str(chat_id), "N/A")
if last_sent_time != "N/A":
last_sent_time = format_datetime(last_sent_time)
muted, mute_until = await is_muted(event.client, chat_id)
if muted and mute_until:
mute_status = f"⏳ Mutato fino al {format_datetime(mute_until.isoformat())}"
elif muted:
mute_status = "🔕 Mutato"
else:
mute_status = "🔔 Non Mutato"
response += f"▶️ **{chat_title}** (`{chat_id}`)n Ultimo Invio: {last_sent_time}n Stato: {mute_status}nn"
if len(response) > 4000:
await event.reply(response)
response = ""
if response:
await event.reply(response)
and the log I get when I launch “.buongiorno-status
” is the following:
...
2024-07-16T22:21:00.696384+00:00 app[worker.1]: INFO:root:Full channel info for -1002199864533: ChatFull(full_chat=ChannelFull(id=2199864533, about='', read_inbox_max_id=33, read_outbox_max_id=33, unread_count=0, chat_photo=PhotoEmpty(id=0), notify_settings=PeerNotifySettings(show_previews=None, silent=None, mute_until=None, ios_sound=None, android_sound=None, other_sound=None, stories_muted=None, stories_hide_sender=None, stories_ios_sound=None, stories_android_sound=None, stories_other_sound=None), bot_info=[BotInfo(user_id=609517172, description="Heya! I'm Rose - a group management bot here to help you manage your groups as effectively as possible.nnPress START!", description_photo=None, description_document=None, commands=[], menu_button=None)], pts=34, can_view_participants=True, can_set_username=True, can_set_stickers=False, hidden_prehistory=True, can_set_location=False, has_scheduled=False, can_view_stats=False, blocked=False, can_delete_channel=True, antispam=False, participants_hidden=False, translations_disabled=False, stories_pinned_available=False, view_forum_as_messages=False, restricted_sponsored=False, can_view_revenue=False, participants_count=3, admins_count=2, kicked_count=0, banned_count=0, online_count=1, exported_invite=ChatInviteExported(link='https://t.me/+KWnHm4OiQb44NGM0', admin_id=6578524012, date=datetime.datetime(2024, 7, 14, 16, 5, 6, tzinfo=datetime.timezone.utc), revoked=False, permanent=True, request_needed=False, start_date=None, expire_date=None, usage_limit=None, usage=None, requested=None, title=None), migrated_from_chat_id=4275804416, migrated_from_max_id=146864, pinned_msg_id=None, stickerset=None, available_min_id=None, folder_id=None, linked_chat_id=None, location=None, slowmode_seconds=None, slowmode_next_send_date=None, stats_dc=4, call=None, ttl_period=None, pending_suggestions=[], groupcall_default_join_as=None, theme_emoticon=None, requests_pending=None, recent_requesters=[], default_send_as=None, available_reactions=ChatReactionsAll(allow_custom=True), reactions_limit=None, stories=None, wallpaper=None, boosts_applied=None, boosts_unrestrict=None, emojiset=None), chats=[Channel(id=2199864533, title='Prova buongiorno 03', photo=ChatPhotoEmpty(), date=datetime.datetime(2024, 7, 14, 16, 24, 21, tzinfo=datetime.timezone.utc), creator=True, left=False, broadcast=False, verified=False, megagroup=True, restricted=False, signatures=False, min=False, scam=False, has_link=False, has_geo=False, slowmode_enabled=False, call_active=False, call_not_empty=False, fake=False, gigagroup=False, noforwards=False, join_to_send=False, join_request=False, forum=False, stories_hidden=False, stories_hidden_min=True, stories_unavailable=True, access_hash=-964150129362255533, username=None, restriction_reason=[], admin_rights=ChatAdminRights(change_info=True, post_messages=True, edit_messages=True, delete_messages=True, ban_users=True, invite_users=True, pin_messages=True, add_admins=True, anonymous=False, manage_call=True, other=True, manage_topics=True, post_stories=True, edit_stories=True, delete_stories=True), banned_rights=None, default_banned_rights=ChatBannedRights(until_date=datetime.datetime(2038, 1, 19, 3, 14, 7, tzinfo=datetime.timezone.utc), view_messages=False, send_messages=False, send_media=False, send_stickers=False, send_gifs=False, send_games=False, send_inline=False, embed_links=False, send_polls=False, change_info=False, invite_users=False, pin_messages=False, manage_topics=False, send_photos=False, send_videos=False, send_roundvideos=False, send_audios=False, send_voices=False, send_docs=False, send_plain=False), participants_count=None, usernames=[], stories_max_id=None, color=None, profile_color=None, emoji_status=None, level=None), Chat(id=4275804416, title='Prova buongiorno 03', photo=ChatPhotoEmpty(), participants_count=0, date=datetime.datetime(2024, 7, 14, 16, 5, 6, tzinfo=datetime.timezone.utc), version=1, creator=True, left=False, deactivated=True, call_active=False, call_not_empty=False, noforwards=False, migrated_to=InputChannel(channel_id=2199864533, access_hash=-964150129362255533), admin_rights=None, default_banned_rights=None)], users=[User(id=6578524012, is_self=True, contact=False, mutual_contact=False, deleted=False, bot=False, bot_chat_history=False, bot_nochats=False, verified=False, restricted=False, min=False, bot_inline_geo=False, support=False, scam=False, apply_min_photo=True, fake=False, bot_attach_menu=False, premium=True, attach_menu_enabled=False, bot_can_edit=False, close_friend=False, stories_hidden=False, stories_unavailable=True, contact_require_premium=False, bot_business=False, access_hash=-5132331090138580524, first_name='...', last_name=None, username='...', phone='...', photo=UserProfilePhoto(photo_id=5990142355057000197, dc_id=4, has_video=False, personal=False, stripped_thumb=b'x01x08x08x95xd1]Hf8xefEx14Rxb9G'), status=UserStatusOnline(expires=datetime.datetime(2024, 7, 16, 22, 25, 57, tzinfo=datetime.timezone.utc)), bot_info_version=None, restriction_reason=[], bot_inline_placeholder=None, lang_code=None, emoji_status=EmojiStatus(document_id=5927155469498978151), usernames=[], stories_max_id=None, color=None, profile_color=None), User(id=609517172, is_self=False, contact=False, mutual_contact=False, deleted=False, bot=True, bot_chat_history=True, bot_nochats=False, verified=False, restricted=False, min=False, bot_inline_geo=False, support=False, scam=False, apply_min_photo=True, fake=False, bot_attach_menu=False, premium=False, attach_menu_enabled=False, bot_can_edit=False, close_friend=False, stories_hidden=False, stories_unavailable=True, contact_require_premium=False, bot_business=False, access_hash=3322810418244095575, first_name='Rose', last_name=None, username='MissRose_bot', phone=None, photo=UserProfilePhoto(photo_id=2617856320546645933, dc_id=4, has_video=False, personal=False, stripped_thumb=b'x01x08x08xafxb63xa7x901xb8xf09xfchxa2x8ax94Sw?'), status=None, bot_info_version=20, restriction_reason=[], bot_inline_placeholder=None, lang_code=None, emoji_status=None, usernames=[], stories_max_id=None, color=None, profile_color=None)])
2024-07-16T22:21:00.696387+00:00 app[worker.1]: INFO:root:My rights for -1002199864533: None
2024-07-16T22:21:00.696404+00:00 app[worker.1]: INFO:root:Banned rights for -1002199864533: None
2024-07-16T22:21:00.696421+00:00 app[worker.1]: INFO:root:Default banned rights for -1002199864533: None
2024-07-16T22:21:00.696440+00:00 app[worker.1]: INFO:root:Chat -1002199864533 is not muted
2024-07-16T22:21:00.806913+00:00 app[worker.1]: INFO:root:Full channel info for -1002181194681: ChatFull(full_chat=ChannelFull(id=2181194681, about='', read_inbox_max_id=33, read_outbox_max_id=33, unread_count=0, chat_photo=PhotoEmpty(id=0), notify_settings=PeerNotifySettings(show_previews=None, silent=None, mute_until=None, ios_sound=None, android_sound=None, other_sound=None, stories_muted=None, stories_hide_sender=None, stories_ios_sound=None, stories_android_sound=None, stories_other_sound=None), bot_info=[BotInfo(user_id=609517172, description="Heya! I'm Rose - a group management bot here to help you manage your groups as effectively as possible.nnPress START!", description_photo=None, description_document=None, commands=[], menu_button=None)], pts=34, can_view_participants=True, can_set_username=True, can_set_stickers=False, hidden_prehistory=True, can_set_location=False, has_scheduled=False, can_view_stats=False, blocked=False, can_delete_channel=True, antispam=False, participants_hidden=False, translations_disabled=False, stories_pinned_available=False, view_forum_as_messages=False, restricted_sponsored=False, can_view_revenue=False, participants_count=3, admins_count=2, kicked_count=0, banned_count=0, online_count=1, exported_invite=ChatInviteExported(link='https://t.me/+uUHgT5trfQk4Yjlk', admin_id=6578524012, date=datetime.datetime(2024, 7, 14, 16, 5, 19, tzinfo=datetime.timezone.utc), revoked=False, permanent=True, request_needed=False, start_date=None, expire_date=None, usage_limit=None, usage=None, requested=None, title=None), migrated_from_chat_id=4274849331, migrated_from_max_id=146865, pinned_msg_id=None, stickerset=None, available_min_id=None, folder_id=None, linked_chat_id=None, location=None, slowmode_seconds=None, slowmode_next_send_date=None, stats_dc=4, call=None, ttl_period=None, pending_suggestions=[], groupcall_default_join_as=None, theme_emoticon=None, requests_pending=None, recent_requesters=[], default_send_as=None, available_reactions=ChatReactionsAll(allow_custom=True), reactions_limit=None, stories=None, wallpaper=None, boosts_applied=None, boosts_unrestrict=None, emojiset=None), chats=[Channel(id=2181194681, title='Prova buongiorno 04', photo=ChatPhotoEmpty(), date=datetime.datetime(2024, 7, 14, 16, 24, 28, tzinfo=datetime.timezone.utc), creator=True, left=False, broadcast=False, verified=False, megagroup=True, restricted=False, signatures=False, min=False, scam=False, has_link=False, has_geo=False, slowmode_enabled=False, call_active=False, call_not_empty=False, fake=False, gigagroup=False, noforwards=False, join_to_send=False, join_request=False, forum=False, stories_hidden=False, stories_hidden_min=True, stories_unavailable=True, access_hash=551644470101846524, username=None, restriction_reason=[], admin_rights=ChatAdminRights(change_info=True, post_messages=True, edit_messages=True, delete_messages=True, ban_users=True, invite_users=True, pin_messages=True, add_admins=True, anonymous=False, manage_call=True, other=True, manage_topics=True, post_stories=True, edit_stories=True, delete_stories=True), banned_rights=None, default_banned_rights=ChatBannedRights(until_date=datetime.datetime(2038, 1, 19, 3, 14, 7, tzinfo=datetime.timezone.utc), view_messages=False, send_messages=False, send_media=False, send_stickers=False, send_gifs=False, send_games=False, send_inline=False, embed_links=False, send_polls=False, change_info=False, invite_users=False, pin_messages=False, manage_topics=False, send_photos=False, send_videos=False, send_roundvideos=False, send_audios=False, send_voices=False, send_docs=False, send_plain=False), participants_count=None, usernames=[], stories_max_id=None, color=None, profile_color=None, emoji_status=None, level=None), Chat(id=4274849331, title='Prova buongiorno 04', photo=ChatPhotoEmpty(), participants_count=0, date=datetime.datetime(2024, 7, 14, 16, 5, 19, tzinfo=datetime.timezone.utc), version=1, creator=True, left=False, deactivated=True, call_active=False, call_not_empty=False, noforwards=False, migrated_to=InputChannel(channel_id=2181194681, access_hash=551644470101846524), admin_rights=None, default_banned_rights=None)], users=[User(id=6578524012, is_self=True, contact=False, mutual_contact=False, deleted=False, bot=False, bot_chat_history=False, bot_nochats=False, verified=False, restricted=False, min=False, bot_inline_geo=False, support=False, scam=False, apply_min_photo=True, fake=False, bot_attach_menu=False, premium=True, attach_menu_enabled=False, bot_can_edit=False, close_friend=False, stories_hidden=False, stories_unavailable=True, contact_require_premium=False, bot_business=False, access_hash=-5132331090138580524, first_name='...', last_name=None, username='...', phone='...', photo=UserProfilePhoto(photo_id=5990142355057000197, dc_id=4, has_video=False, personal=False, stripped_thumb=b'x01x08x08x95xd1]Hf8xefEx14Rxb9G'), status=UserStatusOnline(expires=datetime.datetime(2024, 7, 16, 22, 25, 57, tzinfo=datetime.timezone.utc)), bot_info_version=None, restriction_reason=[], bot_inline_placeholder=None, lang_code=None, emoji_status=EmojiStatus(document_id=5927155469498978151), usernames=[], stories_max_id=None, color=None, profile_color=None), User(id=609517172, is_self=False, contact=False, mutual_contact=False, deleted=False, bot=True, bot_chat_history=True, bot_nochats=False, verified=False, restricted=False, min=False, bot_inline_geo=False, support=False, scam=False, apply_min_photo=True, fake=False, bot_attach_menu=False, premium=False, attach_menu_enabled=False, bot_can_edit=False, close_friend=False, stories_hidden=False, stories_unavailable=True, contact_require_premium=False, bot_business=False, access_hash=3322810418244095575, first_name='Rose', last_name=None, username='MissRose_bot', phone=None, photo=UserProfilePhoto(photo_id=2617856320546645933, dc_id=4, has_video=False, personal=False, stripped_thumb=b'x01x08x08xafxb63xa7x901xb8xf09xfchxa2x8ax94Sw?'), status=None, bot_info_version=20, restriction_reason=[], bot_inline_placeholder=None, lang_code=None, emoji_status=None, usernames=[], stories_max_id=None, color=None, profile_color=None)])
2024-07-16T22:21:00.806915+00:00 app[worker.1]: INFO:root:My rights for -1002181194681: None
2024-07-16T22:21:00.806939+00:00 app[worker.1]: INFO:root:Banned rights for -1002181194681: None
2024-07-16T22:21:00.806956+00:00 app[worker.1]: INFO:root:Default banned rights for -1002181194681: None
2024-07-16T22:21:00.806974+00:00 app[worker.1]: INFO:root:Chat -1002181194681 is not muted
2024-07-16T22:21:00.871658+00:00 app[worker.1]: INFO:root:Full chat info for -4284792983: ChatFull(full_chat=ChatFull(id=4284792983, about='', participants=ChatParticipantsForbidden(chat_id=4284792983, self_participant=None), notify_settings=PeerNotifySettings(show_previews=None, silent=None, mute_until=None, ios_sound=None, android_sound=None, other_sound=None, stories_muted=None, stories_hide_sender=None, stories_ios_sound=None, stories_android_sound=None, stories_other_sound=None), can_set_username=False, has_scheduled=False, translations_disabled=False, chat_photo=None, exported_invite=None, bot_info=[], pinned_msg_id=None, folder_id=None, call=None, ttl_period=None, groupcall_default_join_as=None, theme_emoticon=None, requests_pending=None, recent_requesters=[], available_reactions=ChatReactionsAll(allow_custom=True), reactions_limit=None), chats=[Chat(id=4284792983, title='Prova buongiorno 5', photo=ChatPhotoEmpty(), participants_count=0, date=datetime.datetime(2024, 7, 14, 23, 0, 24, tzinfo=datetime.timezone.utc), version=2, creator=False, left=False, deactivated=True, call_active=False, call_not_empty=False, noforwards=False, migrated_to=InputChannel(channel_id=2205939987, access_hash=8442231008583973137), admin_rights=None, default_banned_rights=None)], users=[])
2024-07-16T22:21:00.871670+00:00 app[worker.1]: INFO:root:My rights for -4284792983: None
2024-07-16T22:21:00.871670+00:00 app[worker.1]: INFO:root:Banned rights for -4284792983: None
2024-07-16T22:21:00.871683+00:00 app[worker.1]: INFO:root:Default banned rights for -4284792983: None
2024-07-16T22:21:00.871700+00:00 app[worker.1]: INFO:root:Chat -4284792983 is not muted
2024-07-16T22:21:00.965711+00:00 app[worker.1]: INFO:root:Full channel info for -1002242584778: ChatFull(full_chat=ChannelFull(id=2242584778, about='', read_inbox_max_id=5, read_outbox_max_id=5, unread_count=0, chat_photo=PhotoEmpty(id=0), notify_settings=PeerNotifySettings(show_previews=None, silent=None, mute_until=None, ios_sound=None, android_sound=None, other_sound=None, stories_muted=None, stories_hide_sender=None, stories_ios_sound=None, stories_android_sound=None, stories_other_sound=None), bot_info=[BotInfo(user_id=609517172, description="Heya! I'm Rose - a group management bot here to help you manage your groups as effectively as possible.nnPress START!", description_photo=None, description_document=None, commands=[], menu_button=None)], pts=6, can_view_participants=True, can_set_username=False, can_set_stickers=False, hidden_prehistory=False, can_set_location=False, has_scheduled=False, can_view_stats=False, blocked=False, can_delete_channel=False, antispam=False, participants_hidden=False, translations_disabled=False, stories_pinned_available=False, view_forum_as_messages=False, restricted_sponsored=False, can_view_revenue=False, participants_count=3, admins_count=None, kicked_count=None, banned_count=None, online_count=1, exported_invite=None, migrated_from_chat_id=4197000018, migrated_from_max_id=147175, pinned_msg_id=None, stickerset=None, available_min_id=None, folder_id=None, linked_chat_id=None, location=None, slowmode_seconds=None, slowmode_next_send_date=None, stats_dc=None, call=None, ttl_period=None, pending_suggestions=[], groupcall_default_join_as=None, theme_emoticon=None, requests_pending=None, recent_requesters=[], default_send_as=None, available_reactions=ChatReactionsAll(allow_custom=True), reactions_limit=None, stories=None, wallpaper=None, boosts_applied=None, boosts_unrestrict=None, emojiset=None), chats=[Channel(id=2242584778, title='Prova buongiorno 6', photo=ChatPhotoEmpty(), date=datetime.datetime(2024, 7, 14, 23, 41, 7, tzinfo=datetime.timezone.utc), creator=False, left=False, broadcast=False, verified=False, megagroup=True, restricted=False, signatures=False, min=False, scam=False, has_link=False, has_geo=False, slowmode_enabled=False, call_active=False, call_not_empty=False, fake=False, gigagroup=False, noforwards=False, join_to_send=False, join_request=False, forum=False, stories_hidden=False, stories_hidden_min=False, stories_unavailable=True, access_hash=8811694644134105140, username=None, restriction_reason=[], admin_rights=None, banned_rights=ChatBannedRights(until_date=datetime.datetime(2024, 8, 13, 23, 41, 4, tzinfo=datetime.timezone.utc), view_messages=False, send_messages=True, send_media=True, send_stickers=True, send_gifs=True, send_games=True, send_inline=True, embed_links=True, send_polls=True, change_info=True, invite_users=True, pin_messages=True, manage_topics=False, send_photos=True, send_videos=True, send_roundvideos=True, send_audios=True, send_voices=True, send_docs=True, send_plain=True), default_banned_rights=ChatBannedRights(until_date=datetime.datetime(2038, 1, 19, 3, 14, 7, tzinfo=datetime.timezone.utc), view_messages=False, send_messages=False, send_media=False, send_stickers=False, send_gifs=False, send_games=False, send_inline=False, embed_links=False, send_polls=False, change_info=False, invite_users=False, pin_messages=False, manage_topics=False, send_photos=False, send_videos=False, send_roundvideos=False, send_audios=False, send_voices=False, send_docs=False, send_plain=False), participants_count=None, usernames=[], stories_max_id=None, color=None, profile_color=None, emoji_status=None, level=None), Chat(id=4197000018, title='Prova buongiorno 6', photo=ChatPhotoEmpty(), participants_count=0, date=datetime.datetime(2024, 7, 14, 23, 40, 26, tzinfo=datetime.timezone.utc), version=1, creator=False, left=False, deactivated=True, call_active=False, call_not_empty=False, noforwards=False, migrated_to=InputChannel(channel_id=2242584778, access_hash=8811694644134105140), admin_rights=None, default_banned_rights=None)], users=[User(id=609517172, is_self=False, contact=False, mutual_contact=False, deleted=False, bot=True, bot_chat_history=True, bot_nochats=False, verified=False, restricted=False, min=False, bot_inline_geo=False, support=False, scam=False, apply_min_photo=True, fake=False, bot_attach_menu=False, premium=False, attach_menu_enabled=False, bot_can_edit=False, close_friend=False, stories_hidden=False, stories_unavailable=True, contact_require_premium=False, bot_business=False, access_hash=3322810418244095575, first_name='Rose', last_name=None, username='MissRose_bot', phone=None, photo=UserProfilePhoto(photo_id=2617856320546645933, dc_id=4, has_video=False, personal=False, stripped_thumb=b'x01x08x08xafxb63xa7x901xb8xf09xfchxa2x8ax94Sw?'), status=None, bot_info_version=20, restriction_reason=[], bot_inline_placeholder=None, lang_code=None, emoji_status=None, usernames=[], stories_max_id=None, color=None, profile_color=None)])
2024-07-16T22:21:00.965714+00:00 app[worker.1]: INFO:root:My rights for -1002242584778: None
2024-07-16T22:21:00.965715+00:00 app[worker.1]: INFO:root:Banned rights for -1002242584778: None
2024-07-16T22:21:00.965716+00:00 app[worker.1]: INFO:root:Default banned rights for -1002242584778: None
2024-07-16T22:21:00.965716+00:00 app[worker.1]: INFO:root:Chat -1002242584778 is not muted
1