Skip to content

Commit

Permalink
Completed all docstrings / typehints up to 100%(visual)
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2020official committed Jul 19, 2022
1 parent c2cfe24 commit f0feb45
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions telebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2777,7 +2777,7 @@ def promote_chat_member(
:param can_pin_messages: Pass True, if the administrator can pin messages, supergroups only
:type can_pin_messages: :obj:`bool`
:param can_promote_members:Pass True, if the administrator can add new administrators with a subset
:param can_promote_members: Pass True, if the administrator can add new administrators with a subset
of his own privileges or demote administrators that he has promoted, directly or indirectly
(promoted by administrators that were appointed by him)
:type can_promote_members: :obj:`bool`
Expand Down Expand Up @@ -4925,6 +4925,7 @@ def add_edited_message_handler(self, handler_dict):
"""
Adds the edit message handler
Note that you should use register_edited_message_handler to add edited_message_handler to the bot.
:meta private:
:param handler_dict:
Expand Down Expand Up @@ -4956,7 +4957,7 @@ def register_edited_message_handler(self, callback: Callable, content_types: Opt
:param chat_types: True for private chat
:type chat_types: :obj:`bool`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: None
Expand Down Expand Up @@ -5065,7 +5066,7 @@ def register_channel_post_handler(self, callback: Callable, content_types: Optio
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: None
Expand Down Expand Up @@ -5174,7 +5175,7 @@ def register_edited_channel_post_handler(self, callback: Callable, content_types
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: decorated function
Expand Down Expand Up @@ -5242,7 +5243,7 @@ def register_inline_handler(self, callback: Callable, func: Callable, pass_bot:
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: decorated function
Expand Down Expand Up @@ -5290,7 +5291,7 @@ def register_chosen_inline_handler(self, callback: Callable, func: Callable, pas
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: None
Expand Down Expand Up @@ -5338,7 +5339,7 @@ def register_callback_query_handler(self, callback: Callable, func: Callable, pa
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: None
Expand Down Expand Up @@ -5386,7 +5387,7 @@ def register_shipping_query_handler(self, callback: Callable, func: Callable, pa
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: None
Expand Down Expand Up @@ -5433,7 +5434,7 @@ def register_pre_checkout_query_handler(self, callback: Callable, func: Callable
:param func: Function executed as a filter
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: decorated function
Expand Down Expand Up @@ -5480,7 +5481,7 @@ def register_poll_handler(self, callback: Callable, func: Callable, pass_bot: Op
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: None
Expand Down Expand Up @@ -5511,6 +5512,8 @@ def add_poll_answer_handler(self, handler_dict):
Adds a poll_answer request handler.
Note that you should use register_poll_answer_handler to add poll_answer_handler to the bot.
:meta private:
:param handler_dict:
:return:
"""
Expand All @@ -5526,7 +5529,7 @@ def register_poll_answer_handler(self, callback: Callable, func: Callable, pass_
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: None
Expand Down Expand Up @@ -5575,7 +5578,7 @@ def register_my_chat_member_handler(self, callback: Callable, func: Optional[Cal
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: None
Expand Down Expand Up @@ -5622,8 +5625,9 @@ def register_chat_member_handler(self, callback: Callable, func: Optional[Callab
:type callback: :obj:`function``
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:param kwargs: Optional keyword arguments(custom filters)
Expand Down Expand Up @@ -5674,7 +5678,7 @@ def register_chat_join_request_handler(self, callback: Callable, func: Optional[
:param func: Function executed as a filter
:type func: :obj:`function`
:param pass_bot: Pass TeleBot to handler.
:param pass_bot: True if you need to pass TeleBot instance to handler(useful for separating handlers into different files)
:type pass_bot: :obj:`bool`
:return: None
Expand Down

0 comments on commit f0feb45

Please sign in to comment.