File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 55pyrogram.update#b0700000 flags:# update_id:int message:flags.0? Message edited_message:flags.1? Message channel_post:flags.2? Message edited_channel_post:flags.3? Message inline_query:flags.4? InlineQuery chosen_inline_result:flags.5? ChosenInlineResult callback_query:flags.6? CallbackQuery shipping_query:flags.7? ShippingQuery pre_checkout_query:flags.8? PreCheckoutQuery = pyrogram .Update ;
66pyrogram.user#b0700001 flags:# id:int is_bot:Bool first_name:string last_name:flags.0? string username:flags.1? string language_code:flags.2? string = pyrogram .User ;
77pyrogram.chat#b0700002 flags:# id:int type:string title:flags.0? string username:flags.1? string first_name:flags.2? string last_name:flags.3? string all_members_are_administrators:flags.4? Bool photo:flags.5? ChatPhoto description:flags.6? string invite_link:flags.7? string pinned_message:flags.8? Message sticker_set_name:flags.9? string can_set_sticker_set:flags.10? Bool = pyrogram .Chat ;
8- pyrogram.message#b0700003 flags:# message_id:int from_user:flags.0?User date:int chat:Chat forward_from:flags.1?User forward_from_chat:flags.2?Chat forward_from_message_id:flags.3?int forward_signature:flags.4?string forward_date:flags.5?int reply_to_message:flags.6?Message edit_date:flags.7?int media_group_id:flags.8?string author_signature:flags.9?string text:flags.10?string entities:flags.11?Vector<MessageEntity> caption_entities:flags.12?Vector<MessageEntity> audio:flags.13?Audio document:flags.14?Document game:flags.15?Game photo:flags.16?Vector<PhotoSize> sticker:flags.17?Sticker video:flags.18?Video voice:flags.19?Voice video_note:flags.20?VideoNote caption:flags.21?string contact:flags.22?Contact location:flags.23?Location venue:flags.24?Venue new_chat_members:flags.25?Vector<User> left_chat_member:flags.26?User new_chat_title:flags.27?string new_chat_photo:flags.28?Vector<PhotoSize> delete_chat_photo:flags.29?true group_chat_created:flags.30?true supergroup_chat_created:flags.31?true channel_chat_created:flags.32?true migrate_to_chat_id:flags.33?int migrate_from_chat_id:flags.34?int pinned_message:flags.35?Message invoice:flags.36?Invoice successful_payment:flags.37?SuccessfulPayment connected_website:flags.38?string views:flags.39?int = pyrogram.Message;
8+ pyrogram.message#b0700003 flags:# message_id:int from_user:flags.0?User date:int chat:Chat forward_from:flags.1?User forward_from_chat:flags.2?Chat forward_from_message_id:flags.3?int forward_signature:flags.4?string forward_date:flags.5?int reply_to_message:flags.6?Message edit_date:flags.7?int media_group_id:flags.8?string author_signature:flags.9?string text:flags.10?string entities:flags.11?Vector<MessageEntity> caption_entities:flags.12?Vector<MessageEntity> audio:flags.13?Audio document:flags.14?Document game:flags.15?Game photo:flags.16?Vector<PhotoSize> sticker:flags.17?Sticker video:flags.18?Video voice:flags.19?Voice video_note:flags.20?VideoNote caption:flags.21?string contact:flags.22?Contact location:flags.23?Location venue:flags.24?Venue new_chat_members:flags.25?Vector<User> left_chat_member:flags.26?User new_chat_title:flags.27?string new_chat_photo:flags.28?Vector<PhotoSize> delete_chat_photo:flags.29?true group_chat_created:flags.30?true supergroup_chat_created:flags.31?true channel_chat_created:flags.32?true migrate_to_chat_id:flags.33?int migrate_from_chat_id:flags.34?int pinned_message:flags.35?Message invoice:flags.36?Invoice successful_payment:flags.37?SuccessfulPayment connected_website:flags.38?string views:flags.39?int via_bot:flags.40?User = pyrogram.Message;
99pyrogram.messageEntity#b0700004 flags:# type:string offset:int length:int url:flags.0? string user:flags.1? User = pyrogram .MessageEntity ;
1010pyrogram.photoSize#b0700005 flags:# file_id:string width:int height:int file_size:flags.0? int = pyrogram .PhotoSize ;
1111pyrogram.audio#b0700006 flags:# file_id:string duration:int performer:flags.0? string title:flags.1? string mime_type:flags.2? string file_size:flags.3? int = pyrogram .Audio ;
Original file line number Diff line number Diff line change @@ -411,7 +411,8 @@ def parse_message(
411411 video_note = video_note ,
412412 sticker = sticker ,
413413 document = document ,
414- views = message .views
414+ views = message .views ,
415+ via_bot = parse_user (users .get (message .via_bot_id , None ))
415416 )
416417
417418 if message .reply_to_msg_id and replies :
You can’t perform that action at this time.
0 commit comments