@@ -1033,7 +1033,7 @@ def unpin_chat_message(self, chat_id):
10331033
10341034 def edit_message_text (self , text , chat_id = None , message_id = None , inline_message_id = None , parse_mode = None ,
10351035 disable_web_page_preview = None , reply_markup = None ):
1036- """
1036+ """
10371037 Use this method to edit text and game messages.
10381038 :param text:
10391039 :param chat_id:
@@ -1051,7 +1051,7 @@ def edit_message_text(self, text, chat_id=None, message_id=None, inline_message_
10511051 return types .Message .de_json (result )
10521052
10531053 def edit_message_media (self , media , chat_id = None , message_id = None , inline_message_id = None , reply_markup = None ):
1054- """
1054+ """
10551055 Use this method to edit animation, audio, document, photo, or video messages. If a message is a part of a message album, then it can be edited only to a photo or a video. Otherwise, message type can be changed arbitrarily. When inline message is edited, new file can't be uploaded. Use previously uploaded file via its file_id or specify a URL.
10561056 :param media:
10571057 :param chat_id:
@@ -1066,7 +1066,7 @@ def edit_message_media(self, media, chat_id=None, message_id=None, inline_messag
10661066 return types .Message .de_json (result )
10671067
10681068 def edit_message_reply_markup (self , chat_id = None , message_id = None , inline_message_id = None , reply_markup = None ):
1069- """
1069+ """
10701070 Use this method to edit only the reply markup of messages.
10711071 :param chat_id:
10721072 :param message_id:
@@ -1081,7 +1081,7 @@ def edit_message_reply_markup(self, chat_id=None, message_id=None, inline_messag
10811081
10821082 def send_game (self , chat_id , game_short_name , disable_notification = None , reply_to_message_id = None ,
10831083 reply_markup = None ):
1084- """
1084+ """
10851085 Used to send the game
10861086 :param chat_id:
10871087 :param game_short_name:
@@ -1096,7 +1096,7 @@ def send_game(self, chat_id, game_short_name, disable_notification=None, reply_t
10961096
10971097 def set_game_score (self , user_id , score , force = None , chat_id = None , message_id = None , inline_message_id = None ,
10981098 edit_message = None ):
1099- """
1099+ """
11001100 Sets the value of points in the game to a specific user
11011101 :param user_id:
11021102 :param score:
@@ -1114,7 +1114,7 @@ def set_game_score(self, user_id, score, force=None, chat_id=None, message_id=No
11141114 return types .Message .de_json (result )
11151115
11161116 def get_game_high_scores (self , user_id , chat_id = None , message_id = None , inline_message_id = None ):
1117- """
1117+ """
11181118 Gets top points and game play
11191119 :param user_id:
11201120 :param chat_id:
@@ -1133,18 +1133,18 @@ def send_invoice(self, chat_id, title, description, invoice_payload, provider_to
11331133 need_name = None , need_phone_number = None , need_email = None , need_shipping_address = None ,
11341134 is_flexible = None , disable_notification = None , reply_to_message_id = None , reply_markup = None ,
11351135 provider_data = None ):
1136- """
1136+ """
11371137 Sends invoice
1138- :param chat_id:
1139- :param title:
1140- :param description:
1141- :param invoice_payload:
1142- :param provider_token:
1143- :param currency:
1144- :param prices:
1145- :param start_parameter:
1146- :param photo_url:
1147- :param photo_size:
1138+ :param chat_id:
1139+ :param title:
1140+ :param description:
1141+ :param invoice_payload:
1142+ :param provider_token:
1143+ :param currency:
1144+ :param prices:
1145+ :param start_parameter:
1146+ :param photo_url:
1147+ :param photo_size:
11481148 :param photo_width:
11491149 :param photo_height:
11501150 :param need_name:
@@ -1166,7 +1166,7 @@ def send_invoice(self, chat_id, title, description, invoice_payload, provider_to
11661166 return types .Message .de_json (result )
11671167
11681168 def send_poll (self , chat_id , poll , disable_notifications = False , reply_to_message = None , reply_markup = None ):
1169- """
1169+ """
11701170 Sends poll
11711171 :param chat_id:
11721172 :param poll:
@@ -1178,7 +1178,7 @@ def send_poll(self, chat_id, poll, disable_notifications=False, reply_to_message
11781178 return types .Message .de_json (apihelper .send_poll (self .token , chat_id , poll .question , poll .options , disable_notifications , reply_to_message , reply_markup ))
11791179
11801180 def stop_poll (self , chat_id , message_id ):
1181- """
1181+ """
11821182 Stops poll
11831183 :param chat_id:
11841184 :param message_id:
@@ -1187,7 +1187,7 @@ def stop_poll(self, chat_id, message_id):
11871187 return types .Poll .de_json (apihelper .stop_poll (self .token , chat_id , message_id ))
11881188
11891189 def answer_shipping_query (self , shipping_query_id , ok , shipping_options = None , error_message = None ):
1190- """
1190+ """
11911191 Asks for an answer to a shipping question
11921192 :param shipping_query_id:
11931193 :param ok:
@@ -1198,18 +1198,18 @@ def answer_shipping_query(self, shipping_query_id, ok, shipping_options=None, er
11981198 return apihelper .answer_shipping_query (self .token , shipping_query_id , ok , shipping_options , error_message )
11991199
12001200 def answer_pre_checkout_query (self , pre_checkout_query_id , ok , error_message = None ):
1201- """
1201+ """
12021202 Response to a request for pre-inspection
1203- :param pre_checkout_query_id:
1204- :param ok:
1205- :param error_message:
1206- :return:
1207- """
1203+ :param pre_checkout_query_id:
1204+ :param ok:
1205+ :param error_message:
1206+ :return:
1207+ """
12081208 return apihelper .answer_pre_checkout_query (self .token , pre_checkout_query_id , ok , error_message )
12091209
12101210 def edit_message_caption (self , caption , chat_id = None , message_id = None , inline_message_id = None ,
12111211 parse_mode = None , reply_markup = None ):
1212- """
1212+ """
12131213 Use this method to edit captions of messages
12141214 :param caption:
12151215 :param chat_id:
@@ -1228,7 +1228,7 @@ def edit_message_caption(self, caption, chat_id=None, message_id=None, inline_me
12281228 def reply_to (self , message , text , ** kwargs ):
12291229 """
12301230 Convenience function for `send_message(message.chat.id, text, reply_to_message_id=message.message_id, **kwargs)`
1231- :param message:
1231+ :param message:
12321232 :param text:
12331233 :param kwargs:
12341234 :return:
@@ -1477,9 +1477,9 @@ def _notify_next_handlers(self, new_messages):
14771477
14781478 @staticmethod
14791479 def _build_handler_dict (handler , ** filters ):
1480- """
1481- Builds a dictionary for a handler
1482- :param handler:
1480+ """
1481+ Builds a dictionary for a handler
1482+ :param handler:
14831483 :param filters:
14841484 :return:
14851485 """
@@ -1536,7 +1536,7 @@ def decorator(handler):
15361536 return decorator
15371537
15381538 def add_message_handler (self , handler_dict ):
1539- """
1539+ """
15401540 Adds a message handler
15411541 :param handler_dict:
15421542 :return:
@@ -1756,7 +1756,7 @@ def add_pre_checkout_query_handler(self, handler_dict):
17561756 self .pre_checkout_query_handlers .append (handler_dict )
17571757
17581758 def _test_message_handler (self , message_handler , message ):
1759- """
1759+ """
17601760 Test message handler
17611761 :param message_handler:
17621762 :param message:
@@ -1773,11 +1773,11 @@ def _test_message_handler(self, message_handler, message):
17731773
17741774 @staticmethod
17751775 def _test_filter (filter , filter_value , message ):
1776- """
1777- Test filters
1778- :param filter:
1779- :param filter_value:
1780- :param message:
1776+ """
1777+ Test filters
1778+ :param filter:
1779+ :param filter_value:
1780+ :param message:
17811781 :return:
17821782 """
17831783 test_cases = {
0 commit comments