mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-30 22:05:28 +00:00
Add Update type
This commit is contained in:
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
|
Reference in New Issue
Block a user