From 33baf91a26051ec8127742795aba48b0353bd163 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Mar 2018 14:45:27 +0100 Subject: [PATCH] Add Update type --- pyrogram/client/types/update.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pyrogram/client/types/update.py diff --git a/pyrogram/client/types/update.py b/pyrogram/client/types/update.py new file mode 100644 index 00000000..f367afc3 --- /dev/null +++ b/pyrogram/client/types/update.py @@ -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 `): + + 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