Add user_status field to Update class
This commit is contained in:
parent
4b04910197
commit
471b5c3334
@ -58,6 +58,9 @@ class Update(Object):
|
|||||||
|
|
||||||
pre_checkout_query (:obj:`PreCheckoutQuery <pyrogram.PreCheckoutQuery>`, *optional*):
|
pre_checkout_query (:obj:`PreCheckoutQuery <pyrogram.PreCheckoutQuery>`, *optional*):
|
||||||
New incoming pre-checkout query. Contains full information about checkout.
|
New incoming pre-checkout query. Contains full information about checkout.
|
||||||
|
|
||||||
|
user_status (:obj:`UserStatus <pyrogram.UserStatus>`, *optional*):
|
||||||
|
User status (last seen date) update.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
ID = 0xb0700000
|
ID = 0xb0700000
|
||||||
@ -74,7 +77,8 @@ class Update(Object):
|
|||||||
chosen_inline_result=None,
|
chosen_inline_result=None,
|
||||||
callback_query=None,
|
callback_query=None,
|
||||||
shipping_query=None,
|
shipping_query=None,
|
||||||
pre_checkout_query=None
|
pre_checkout_query=None,
|
||||||
|
user_status=None
|
||||||
):
|
):
|
||||||
self.message = message
|
self.message = message
|
||||||
self.edited_message = edited_message
|
self.edited_message = edited_message
|
||||||
@ -87,3 +91,4 @@ class Update(Object):
|
|||||||
self.callback_query = callback_query
|
self.callback_query = callback_query
|
||||||
self.shipping_query = shipping_query
|
self.shipping_query = shipping_query
|
||||||
self.pre_checkout_query = pre_checkout_query
|
self.pre_checkout_query = pre_checkout_query
|
||||||
|
self.user_status = user_status
|
||||||
|
Loading…
Reference in New Issue
Block a user