2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 21:38:04 +00:00

Add Update type

This commit is contained in:
Dan 2018-03-09 14:45:27 +01:00
parent 4e4d9e6e44
commit 33baf91a26

View 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