mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Add Update type
This commit is contained in:
parent
4e4d9e6e44
commit
33baf91a26
28
pyrogram/client/types/update.py
Normal file
28
pyrogram/client/types/update.py
Normal file
@ -0,0 +1,28 @@
|
||||
from . import Message
|
||||
|
||||
|
||||
class Update:
|
||||
"""This object represents an incoming update.
|
||||
At most one of the optional parameters can be present in any given update.
|
||||
|
||||
|
||||
Args:
|
||||
message (:obj:`Message <pyrogram.Message>`):
|
||||
|
||||
edited_message ():
|
||||
|
||||
channel_post ():
|
||||
|
||||
edited_channel_post ():
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
message: Message = None,
|
||||
edited_message: Message = None,
|
||||
channel_post: Message = None,
|
||||
edited_channel_post: Message = None):
|
||||
self.message = message
|
||||
self.edited_message = edited_message
|
||||
self.channel_post = channel_post
|
||||
self.edited_channel_post = edited_channel_post
|
Loading…
x
Reference in New Issue
Block a user