teleflow-sdk 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (599) hide show
  1. teleflow_sdk-0.0.1/PKG-INFO +12 -0
  2. teleflow_sdk-0.0.1/pyproject.toml +20 -0
  3. teleflow_sdk-0.0.1/setup.cfg +4 -0
  4. teleflow_sdk-0.0.1/teleflow/__init__.py +12 -0
  5. teleflow_sdk-0.0.1/teleflow/bot.py +128 -0
  6. teleflow_sdk-0.0.1/teleflow/exceptions.py +17 -0
  7. teleflow_sdk-0.0.1/teleflow/methods/__init__.py +373 -0
  8. teleflow_sdk-0.0.1/teleflow/methods/add_sticker_to_set.py +18 -0
  9. teleflow_sdk-0.0.1/teleflow/methods/answer_callback_query.py +16 -0
  10. teleflow_sdk-0.0.1/teleflow/methods/answer_chat_join_request_query.py +13 -0
  11. teleflow_sdk-0.0.1/teleflow/methods/answer_guest_query.py +15 -0
  12. teleflow_sdk-0.0.1/teleflow/methods/answer_inline_query.py +19 -0
  13. teleflow_sdk-0.0.1/teleflow/methods/answer_pre_checkout_query.py +14 -0
  14. teleflow_sdk-0.0.1/teleflow/methods/answer_shipping_query.py +16 -0
  15. teleflow_sdk-0.0.1/teleflow/methods/answer_web_app_query.py +15 -0
  16. teleflow_sdk-0.0.1/teleflow/methods/approve_chat_join_request.py +13 -0
  17. teleflow_sdk-0.0.1/teleflow/methods/approve_suggested_post.py +14 -0
  18. teleflow_sdk-0.0.1/teleflow/methods/ban_chat_member.py +15 -0
  19. teleflow_sdk-0.0.1/teleflow/methods/ban_chat_sender_chat.py +13 -0
  20. teleflow_sdk-0.0.1/teleflow/methods/close.py +11 -0
  21. teleflow_sdk-0.0.1/teleflow/methods/close_forum_topic.py +13 -0
  22. teleflow_sdk-0.0.1/teleflow/methods/close_general_forum_topic.py +12 -0
  23. teleflow_sdk-0.0.1/teleflow/methods/convert_gift_to_stars.py +13 -0
  24. teleflow_sdk-0.0.1/teleflow/methods/copy_message.py +36 -0
  25. teleflow_sdk-0.0.1/teleflow/methods/copy_messages.py +20 -0
  26. teleflow_sdk-0.0.1/teleflow/methods/create_chat_invite_link.py +17 -0
  27. teleflow_sdk-0.0.1/teleflow/methods/create_chat_subscription_invite_link.py +16 -0
  28. teleflow_sdk-0.0.1/teleflow/methods/create_forum_topic.py +16 -0
  29. teleflow_sdk-0.0.1/teleflow/methods/create_invoice_link.py +34 -0
  30. teleflow_sdk-0.0.1/teleflow/methods/create_new_sticker_set.py +18 -0
  31. teleflow_sdk-0.0.1/teleflow/methods/decline_chat_join_request.py +13 -0
  32. teleflow_sdk-0.0.1/teleflow/methods/decline_suggested_post.py +14 -0
  33. teleflow_sdk-0.0.1/teleflow/methods/delete_all_message_reactions.py +14 -0
  34. teleflow_sdk-0.0.1/teleflow/methods/delete_business_messages.py +13 -0
  35. teleflow_sdk-0.0.1/teleflow/methods/delete_chat_photo.py +12 -0
  36. teleflow_sdk-0.0.1/teleflow/methods/delete_chat_sticker_set.py +12 -0
  37. teleflow_sdk-0.0.1/teleflow/methods/delete_ephemeral_message.py +14 -0
  38. teleflow_sdk-0.0.1/teleflow/methods/delete_forum_topic.py +13 -0
  39. teleflow_sdk-0.0.1/teleflow/methods/delete_message.py +13 -0
  40. teleflow_sdk-0.0.1/teleflow/methods/delete_message_reaction.py +15 -0
  41. teleflow_sdk-0.0.1/teleflow/methods/delete_messages.py +13 -0
  42. teleflow_sdk-0.0.1/teleflow/methods/delete_my_commands.py +14 -0
  43. teleflow_sdk-0.0.1/teleflow/methods/delete_sticker_from_set.py +15 -0
  44. teleflow_sdk-0.0.1/teleflow/methods/delete_sticker_set.py +12 -0
  45. teleflow_sdk-0.0.1/teleflow/methods/delete_story.py +13 -0
  46. teleflow_sdk-0.0.1/teleflow/methods/delete_webhook.py +12 -0
  47. teleflow_sdk-0.0.1/teleflow/methods/edit_chat_invite_link.py +18 -0
  48. teleflow_sdk-0.0.1/teleflow/methods/edit_chat_subscription_invite_link.py +15 -0
  49. teleflow_sdk-0.0.1/teleflow/methods/edit_ephemeral_message_caption.py +21 -0
  50. teleflow_sdk-0.0.1/teleflow/methods/edit_ephemeral_message_media.py +18 -0
  51. teleflow_sdk-0.0.1/teleflow/methods/edit_ephemeral_message_reply_markup.py +16 -0
  52. teleflow_sdk-0.0.1/teleflow/methods/edit_ephemeral_message_text.py +24 -0
  53. teleflow_sdk-0.0.1/teleflow/methods/edit_forum_topic.py +15 -0
  54. teleflow_sdk-0.0.1/teleflow/methods/edit_general_forum_topic.py +13 -0
  55. teleflow_sdk-0.0.1/teleflow/methods/edit_message_caption.py +23 -0
  56. teleflow_sdk-0.0.1/teleflow/methods/edit_message_checklist.py +19 -0
  57. teleflow_sdk-0.0.1/teleflow/methods/edit_message_live_location.py +24 -0
  58. teleflow_sdk-0.0.1/teleflow/methods/edit_message_media.py +20 -0
  59. teleflow_sdk-0.0.1/teleflow/methods/edit_message_reply_markup.py +18 -0
  60. teleflow_sdk-0.0.1/teleflow/methods/edit_message_text.py +26 -0
  61. teleflow_sdk-0.0.1/teleflow/methods/edit_story.py +22 -0
  62. teleflow_sdk-0.0.1/teleflow/methods/edit_user_star_subscription.py +14 -0
  63. teleflow_sdk-0.0.1/teleflow/methods/export_chat_invite_link.py +12 -0
  64. teleflow_sdk-0.0.1/teleflow/methods/forward_message.py +23 -0
  65. teleflow_sdk-0.0.1/teleflow/methods/forward_messages.py +19 -0
  66. teleflow_sdk-0.0.1/teleflow/methods/get_available_gifts.py +12 -0
  67. teleflow_sdk-0.0.1/teleflow/methods/get_business_account_gifts.py +23 -0
  68. teleflow_sdk-0.0.1/teleflow/methods/get_business_account_star_balance.py +13 -0
  69. teleflow_sdk-0.0.1/teleflow/methods/get_business_connection.py +13 -0
  70. teleflow_sdk-0.0.1/teleflow/methods/get_chat.py +13 -0
  71. teleflow_sdk-0.0.1/teleflow/methods/get_chat_administrators.py +14 -0
  72. teleflow_sdk-0.0.1/teleflow/methods/get_chat_gifts.py +23 -0
  73. teleflow_sdk-0.0.1/teleflow/methods/get_chat_member.py +14 -0
  74. teleflow_sdk-0.0.1/teleflow/methods/get_chat_member_count.py +12 -0
  75. teleflow_sdk-0.0.1/teleflow/methods/get_chat_menu_button.py +13 -0
  76. teleflow_sdk-0.0.1/teleflow/methods/get_custom_emoji_stickers.py +13 -0
  77. teleflow_sdk-0.0.1/teleflow/methods/get_file.py +13 -0
  78. teleflow_sdk-0.0.1/teleflow/methods/get_forum_topic_icon_stickers.py +12 -0
  79. teleflow_sdk-0.0.1/teleflow/methods/get_game_high_scores.py +16 -0
  80. teleflow_sdk-0.0.1/teleflow/methods/get_managed_bot_access_settings.py +13 -0
  81. teleflow_sdk-0.0.1/teleflow/methods/get_managed_bot_token.py +12 -0
  82. teleflow_sdk-0.0.1/teleflow/methods/get_me.py +12 -0
  83. teleflow_sdk-0.0.1/teleflow/methods/get_my_commands.py +15 -0
  84. teleflow_sdk-0.0.1/teleflow/methods/get_my_default_administrator_rights.py +13 -0
  85. teleflow_sdk-0.0.1/teleflow/methods/get_my_description.py +13 -0
  86. teleflow_sdk-0.0.1/teleflow/methods/get_my_name.py +13 -0
  87. teleflow_sdk-0.0.1/teleflow/methods/get_my_short_description.py +13 -0
  88. teleflow_sdk-0.0.1/teleflow/methods/get_my_star_balance.py +12 -0
  89. teleflow_sdk-0.0.1/teleflow/methods/get_star_transactions.py +14 -0
  90. teleflow_sdk-0.0.1/teleflow/methods/get_sticker_set.py +13 -0
  91. teleflow_sdk-0.0.1/teleflow/methods/get_updates.py +16 -0
  92. teleflow_sdk-0.0.1/teleflow/methods/get_user_chat_boosts.py +14 -0
  93. teleflow_sdk-0.0.1/teleflow/methods/get_user_gifts.py +21 -0
  94. teleflow_sdk-0.0.1/teleflow/methods/get_user_personal_chat_messages.py +14 -0
  95. teleflow_sdk-0.0.1/teleflow/methods/get_user_profile_audios.py +15 -0
  96. teleflow_sdk-0.0.1/teleflow/methods/get_user_profile_photos.py +15 -0
  97. teleflow_sdk-0.0.1/teleflow/methods/get_webhook_info.py +12 -0
  98. teleflow_sdk-0.0.1/teleflow/methods/gift_premium_subscription.py +18 -0
  99. teleflow_sdk-0.0.1/teleflow/methods/hide_general_forum_topic.py +12 -0
  100. teleflow_sdk-0.0.1/teleflow/methods/leave_chat.py +12 -0
  101. teleflow_sdk-0.0.1/teleflow/methods/log_out.py +11 -0
  102. teleflow_sdk-0.0.1/teleflow/methods/pin_chat_message.py +15 -0
  103. teleflow_sdk-0.0.1/teleflow/methods/post_story.py +24 -0
  104. teleflow_sdk-0.0.1/teleflow/methods/promote_chat_member.py +31 -0
  105. teleflow_sdk-0.0.1/teleflow/methods/read_business_message.py +14 -0
  106. teleflow_sdk-0.0.1/teleflow/methods/refund_star_payment.py +13 -0
  107. teleflow_sdk-0.0.1/teleflow/methods/remove_business_account_profile_photo.py +13 -0
  108. teleflow_sdk-0.0.1/teleflow/methods/remove_chat_verification.py +12 -0
  109. teleflow_sdk-0.0.1/teleflow/methods/remove_my_profile_photo.py +11 -0
  110. teleflow_sdk-0.0.1/teleflow/methods/remove_user_verification.py +12 -0
  111. teleflow_sdk-0.0.1/teleflow/methods/reopen_forum_topic.py +13 -0
  112. teleflow_sdk-0.0.1/teleflow/methods/reopen_general_forum_topic.py +12 -0
  113. teleflow_sdk-0.0.1/teleflow/methods/replace_managed_bot_token.py +12 -0
  114. teleflow_sdk-0.0.1/teleflow/methods/replace_sticker_in_set.py +19 -0
  115. teleflow_sdk-0.0.1/teleflow/methods/repost_story.py +18 -0
  116. teleflow_sdk-0.0.1/teleflow/methods/restrict_chat_member.py +17 -0
  117. teleflow_sdk-0.0.1/teleflow/methods/revoke_chat_invite_link.py +14 -0
  118. teleflow_sdk-0.0.1/teleflow/methods/save_prepared_inline_message.py +19 -0
  119. teleflow_sdk-0.0.1/teleflow/methods/save_prepared_keyboard_button.py +15 -0
  120. teleflow_sdk-0.0.1/teleflow/methods/send_animation.py +46 -0
  121. teleflow_sdk-0.0.1/teleflow/methods/send_audio.py +44 -0
  122. teleflow_sdk-0.0.1/teleflow/methods/send_chat_action.py +15 -0
  123. teleflow_sdk-0.0.1/teleflow/methods/send_chat_join_request_web_app.py +13 -0
  124. teleflow_sdk-0.0.1/teleflow/methods/send_checklist.py +23 -0
  125. teleflow_sdk-0.0.1/teleflow/methods/send_contact.py +35 -0
  126. teleflow_sdk-0.0.1/teleflow/methods/send_dice.py +30 -0
  127. teleflow_sdk-0.0.1/teleflow/methods/send_document.py +42 -0
  128. teleflow_sdk-0.0.1/teleflow/methods/send_game.py +24 -0
  129. teleflow_sdk-0.0.1/teleflow/methods/send_gift.py +19 -0
  130. teleflow_sdk-0.0.1/teleflow/methods/send_invoice.py +47 -0
  131. teleflow_sdk-0.0.1/teleflow/methods/send_live_photo.py +43 -0
  132. teleflow_sdk-0.0.1/teleflow/methods/send_location.py +37 -0
  133. teleflow_sdk-0.0.1/teleflow/methods/send_media_group.py +28 -0
  134. teleflow_sdk-0.0.1/teleflow/methods/send_message.py +37 -0
  135. teleflow_sdk-0.0.1/teleflow/methods/send_message_draft.py +20 -0
  136. teleflow_sdk-0.0.1/teleflow/methods/send_paid_media.py +37 -0
  137. teleflow_sdk-0.0.1/teleflow/methods/send_photo.py +42 -0
  138. teleflow_sdk-0.0.1/teleflow/methods/send_poll.py +54 -0
  139. teleflow_sdk-0.0.1/teleflow/methods/send_rich_message.py +33 -0
  140. teleflow_sdk-0.0.1/teleflow/methods/send_rich_message_draft.py +18 -0
  141. teleflow_sdk-0.0.1/teleflow/methods/send_sticker.py +37 -0
  142. teleflow_sdk-0.0.1/teleflow/methods/send_venue.py +39 -0
  143. teleflow_sdk-0.0.1/teleflow/methods/send_video.py +49 -0
  144. teleflow_sdk-0.0.1/teleflow/methods/send_video_note.py +36 -0
  145. teleflow_sdk-0.0.1/teleflow/methods/send_voice.py +41 -0
  146. teleflow_sdk-0.0.1/teleflow/methods/set_business_account_bio.py +13 -0
  147. teleflow_sdk-0.0.1/teleflow/methods/set_business_account_gift_settings.py +15 -0
  148. teleflow_sdk-0.0.1/teleflow/methods/set_business_account_name.py +14 -0
  149. teleflow_sdk-0.0.1/teleflow/methods/set_business_account_profile_photo.py +18 -0
  150. teleflow_sdk-0.0.1/teleflow/methods/set_business_account_username.py +13 -0
  151. teleflow_sdk-0.0.1/teleflow/methods/set_chat_administrator_custom_title.py +14 -0
  152. teleflow_sdk-0.0.1/teleflow/methods/set_chat_description.py +13 -0
  153. teleflow_sdk-0.0.1/teleflow/methods/set_chat_member_tag.py +14 -0
  154. teleflow_sdk-0.0.1/teleflow/methods/set_chat_menu_button.py +14 -0
  155. teleflow_sdk-0.0.1/teleflow/methods/set_chat_permissions.py +15 -0
  156. teleflow_sdk-0.0.1/teleflow/methods/set_chat_photo.py +17 -0
  157. teleflow_sdk-0.0.1/teleflow/methods/set_chat_sticker_set.py +13 -0
  158. teleflow_sdk-0.0.1/teleflow/methods/set_chat_title.py +13 -0
  159. teleflow_sdk-0.0.1/teleflow/methods/set_custom_emoji_sticker_set_thumbnail.py +13 -0
  160. teleflow_sdk-0.0.1/teleflow/methods/set_game_score.py +19 -0
  161. teleflow_sdk-0.0.1/teleflow/methods/set_managed_bot_access_settings.py +14 -0
  162. teleflow_sdk-0.0.1/teleflow/methods/set_message_reaction.py +16 -0
  163. teleflow_sdk-0.0.1/teleflow/methods/set_my_commands.py +16 -0
  164. teleflow_sdk-0.0.1/teleflow/methods/set_my_default_administrator_rights.py +14 -0
  165. teleflow_sdk-0.0.1/teleflow/methods/set_my_description.py +13 -0
  166. teleflow_sdk-0.0.1/teleflow/methods/set_my_name.py +13 -0
  167. teleflow_sdk-0.0.1/teleflow/methods/set_my_profile_photo.py +16 -0
  168. teleflow_sdk-0.0.1/teleflow/methods/set_my_short_description.py +13 -0
  169. teleflow_sdk-0.0.1/teleflow/methods/set_passport_data_errors.py +14 -0
  170. teleflow_sdk-0.0.1/teleflow/methods/set_sticker_emoji_list.py +16 -0
  171. teleflow_sdk-0.0.1/teleflow/methods/set_sticker_keywords.py +16 -0
  172. teleflow_sdk-0.0.1/teleflow/methods/set_sticker_mask_position.py +17 -0
  173. teleflow_sdk-0.0.1/teleflow/methods/set_sticker_position_in_set.py +16 -0
  174. teleflow_sdk-0.0.1/teleflow/methods/set_sticker_set_thumbnail.py +16 -0
  175. teleflow_sdk-0.0.1/teleflow/methods/set_sticker_set_title.py +13 -0
  176. teleflow_sdk-0.0.1/teleflow/methods/set_user_emoji_status.py +14 -0
  177. teleflow_sdk-0.0.1/teleflow/methods/set_webhook.py +19 -0
  178. teleflow_sdk-0.0.1/teleflow/methods/stop_message_live_location.py +18 -0
  179. teleflow_sdk-0.0.1/teleflow/methods/stop_poll.py +17 -0
  180. teleflow_sdk-0.0.1/teleflow/methods/transfer_business_account_stars.py +13 -0
  181. teleflow_sdk-0.0.1/teleflow/methods/transfer_gift.py +15 -0
  182. teleflow_sdk-0.0.1/teleflow/methods/unban_chat_member.py +14 -0
  183. teleflow_sdk-0.0.1/teleflow/methods/unban_chat_sender_chat.py +13 -0
  184. teleflow_sdk-0.0.1/teleflow/methods/unhide_general_forum_topic.py +12 -0
  185. teleflow_sdk-0.0.1/teleflow/methods/unpin_all_chat_messages.py +12 -0
  186. teleflow_sdk-0.0.1/teleflow/methods/unpin_all_forum_topic_messages.py +13 -0
  187. teleflow_sdk-0.0.1/teleflow/methods/unpin_all_general_forum_topic_messages.py +12 -0
  188. teleflow_sdk-0.0.1/teleflow/methods/unpin_chat_message.py +14 -0
  189. teleflow_sdk-0.0.1/teleflow/methods/upgrade_gift.py +15 -0
  190. teleflow_sdk-0.0.1/teleflow/methods/upload_sticker_file.py +19 -0
  191. teleflow_sdk-0.0.1/teleflow/methods/verify_chat.py +13 -0
  192. teleflow_sdk-0.0.1/teleflow/methods/verify_user.py +13 -0
  193. teleflow_sdk-0.0.1/teleflow/objects/__init__.py +400 -0
  194. teleflow_sdk-0.0.1/teleflow/objects/accepted_gift_types.py +45 -0
  195. teleflow_sdk-0.0.1/teleflow/objects/affiliate_info.py +51 -0
  196. teleflow_sdk-0.0.1/teleflow/objects/animation.py +65 -0
  197. teleflow_sdk-0.0.1/teleflow/objects/audio.py +65 -0
  198. teleflow_sdk-0.0.1/teleflow/objects/background_fill.py +26 -0
  199. teleflow_sdk-0.0.1/teleflow/objects/background_fill_freeform_gradient.py +33 -0
  200. teleflow_sdk-0.0.1/teleflow/objects/background_fill_gradient.py +41 -0
  201. teleflow_sdk-0.0.1/teleflow/objects/background_fill_solid.py +33 -0
  202. teleflow_sdk-0.0.1/teleflow/objects/background_type.py +26 -0
  203. teleflow_sdk-0.0.1/teleflow/objects/background_type_chat_theme.py +33 -0
  204. teleflow_sdk-0.0.1/teleflow/objects/background_type_fill.py +41 -0
  205. teleflow_sdk-0.0.1/teleflow/objects/background_type_pattern.py +55 -0
  206. teleflow_sdk-0.0.1/teleflow/objects/background_type_wallpaper.py +49 -0
  207. teleflow_sdk-0.0.1/teleflow/objects/birthdate.py +37 -0
  208. teleflow_sdk-0.0.1/teleflow/objects/bot_access_settings.py +39 -0
  209. teleflow_sdk-0.0.1/teleflow/objects/bot_command.py +37 -0
  210. teleflow_sdk-0.0.1/teleflow/objects/bot_command_scope.py +26 -0
  211. teleflow_sdk-0.0.1/teleflow/objects/bot_command_scope_all_chat_administrators.py +29 -0
  212. teleflow_sdk-0.0.1/teleflow/objects/bot_command_scope_all_group_chats.py +29 -0
  213. teleflow_sdk-0.0.1/teleflow/objects/bot_command_scope_all_private_chats.py +29 -0
  214. teleflow_sdk-0.0.1/teleflow/objects/bot_command_scope_chat.py +33 -0
  215. teleflow_sdk-0.0.1/teleflow/objects/bot_command_scope_chat_administrators.py +33 -0
  216. teleflow_sdk-0.0.1/teleflow/objects/bot_command_scope_chat_member.py +37 -0
  217. teleflow_sdk-0.0.1/teleflow/objects/bot_command_scope_default.py +29 -0
  218. teleflow_sdk-0.0.1/teleflow/objects/bot_description.py +29 -0
  219. teleflow_sdk-0.0.1/teleflow/objects/bot_name.py +29 -0
  220. teleflow_sdk-0.0.1/teleflow/objects/bot_short_description.py +29 -0
  221. teleflow_sdk-0.0.1/teleflow/objects/bot_subscription_updated.py +41 -0
  222. teleflow_sdk-0.0.1/teleflow/objects/business_bot_rights.py +81 -0
  223. teleflow_sdk-0.0.1/teleflow/objects/business_connection.py +55 -0
  224. teleflow_sdk-0.0.1/teleflow/objects/business_intro.py +41 -0
  225. teleflow_sdk-0.0.1/teleflow/objects/business_location.py +37 -0
  226. teleflow_sdk-0.0.1/teleflow/objects/business_messages_deleted.py +41 -0
  227. teleflow_sdk-0.0.1/teleflow/objects/business_opening_hours.py +39 -0
  228. teleflow_sdk-0.0.1/teleflow/objects/business_opening_hours_interval.py +33 -0
  229. teleflow_sdk-0.0.1/teleflow/objects/callback_game.py +26 -0
  230. teleflow_sdk-0.0.1/teleflow/objects/callback_query.py +59 -0
  231. teleflow_sdk-0.0.1/teleflow/objects/chat.py +57 -0
  232. teleflow_sdk-0.0.1/teleflow/objects/chat_administrator_rights.py +97 -0
  233. teleflow_sdk-0.0.1/teleflow/objects/chat_background.py +33 -0
  234. teleflow_sdk-0.0.1/teleflow/objects/chat_boost.py +45 -0
  235. teleflow_sdk-0.0.1/teleflow/objects/chat_boost_added.py +29 -0
  236. teleflow_sdk-0.0.1/teleflow/objects/chat_boost_removed.py +47 -0
  237. teleflow_sdk-0.0.1/teleflow/objects/chat_boost_source.py +26 -0
  238. teleflow_sdk-0.0.1/teleflow/objects/chat_boost_source_gift_code.py +37 -0
  239. teleflow_sdk-0.0.1/teleflow/objects/chat_boost_source_giveaway.py +49 -0
  240. teleflow_sdk-0.0.1/teleflow/objects/chat_boost_source_premium.py +37 -0
  241. teleflow_sdk-0.0.1/teleflow/objects/chat_boost_updated.py +39 -0
  242. teleflow_sdk-0.0.1/teleflow/objects/chat_full_info.py +273 -0
  243. teleflow_sdk-0.0.1/teleflow/objects/chat_invite_link.py +73 -0
  244. teleflow_sdk-0.0.1/teleflow/objects/chat_join_request.py +61 -0
  245. teleflow_sdk-0.0.1/teleflow/objects/chat_location.py +37 -0
  246. teleflow_sdk-0.0.1/teleflow/objects/chat_member.py +26 -0
  247. teleflow_sdk-0.0.1/teleflow/objects/chat_member_administrator.py +117 -0
  248. teleflow_sdk-0.0.1/teleflow/objects/chat_member_banned.py +41 -0
  249. teleflow_sdk-0.0.1/teleflow/objects/chat_member_left.py +37 -0
  250. teleflow_sdk-0.0.1/teleflow/objects/chat_member_member.py +45 -0
  251. teleflow_sdk-0.0.1/teleflow/objects/chat_member_owner.py +45 -0
  252. teleflow_sdk-0.0.1/teleflow/objects/chat_member_restricted.py +113 -0
  253. teleflow_sdk-0.0.1/teleflow/objects/chat_member_updated.py +67 -0
  254. teleflow_sdk-0.0.1/teleflow/objects/chat_owner_changed.py +33 -0
  255. teleflow_sdk-0.0.1/teleflow/objects/chat_owner_left.py +33 -0
  256. teleflow_sdk-0.0.1/teleflow/objects/chat_permissions.py +89 -0
  257. teleflow_sdk-0.0.1/teleflow/objects/chat_photo.py +41 -0
  258. teleflow_sdk-0.0.1/teleflow/objects/chat_shared.py +51 -0
  259. teleflow_sdk-0.0.1/teleflow/objects/checklist.py +55 -0
  260. teleflow_sdk-0.0.1/teleflow/objects/checklist_task.py +59 -0
  261. teleflow_sdk-0.0.1/teleflow/objects/checklist_tasks_added.py +41 -0
  262. teleflow_sdk-0.0.1/teleflow/objects/checklist_tasks_done.py +41 -0
  263. teleflow_sdk-0.0.1/teleflow/objects/chosen_inline_result.py +51 -0
  264. teleflow_sdk-0.0.1/teleflow/objects/community.py +33 -0
  265. teleflow_sdk-0.0.1/teleflow/objects/community_chat_added.py +33 -0
  266. teleflow_sdk-0.0.1/teleflow/objects/community_chat_joined.py +33 -0
  267. teleflow_sdk-0.0.1/teleflow/objects/community_chat_removed.py +26 -0
  268. teleflow_sdk-0.0.1/teleflow/objects/contact.py +45 -0
  269. teleflow_sdk-0.0.1/teleflow/objects/copy_text_button.py +29 -0
  270. teleflow_sdk-0.0.1/teleflow/objects/dice.py +33 -0
  271. teleflow_sdk-0.0.1/teleflow/objects/direct_message_price_changed.py +33 -0
  272. teleflow_sdk-0.0.1/teleflow/objects/direct_messages_topic.py +37 -0
  273. teleflow_sdk-0.0.1/teleflow/objects/disabled_button.py +26 -0
  274. teleflow_sdk-0.0.1/teleflow/objects/document.py +53 -0
  275. teleflow_sdk-0.0.1/teleflow/objects/encrypted_credentials.py +37 -0
  276. teleflow_sdk-0.0.1/teleflow/objects/encrypted_passport_element.py +73 -0
  277. teleflow_sdk-0.0.1/teleflow/objects/ephemeral_message_parameters.py +36 -0
  278. teleflow_sdk-0.0.1/teleflow/objects/external_reply_info.py +181 -0
  279. teleflow_sdk-0.0.1/teleflow/objects/file.py +41 -0
  280. teleflow_sdk-0.0.1/teleflow/objects/force_reply.py +37 -0
  281. teleflow_sdk-0.0.1/teleflow/objects/forum_topic.py +45 -0
  282. teleflow_sdk-0.0.1/teleflow/objects/forum_topic_closed.py +26 -0
  283. teleflow_sdk-0.0.1/teleflow/objects/forum_topic_created.py +41 -0
  284. teleflow_sdk-0.0.1/teleflow/objects/forum_topic_edited.py +33 -0
  285. teleflow_sdk-0.0.1/teleflow/objects/forum_topic_reopened.py +26 -0
  286. teleflow_sdk-0.0.1/teleflow/objects/game.py +61 -0
  287. teleflow_sdk-0.0.1/teleflow/objects/game_high_score.py +41 -0
  288. teleflow_sdk-0.0.1/teleflow/objects/general_forum_topic_hidden.py +26 -0
  289. teleflow_sdk-0.0.1/teleflow/objects/general_forum_topic_unhidden.py +26 -0
  290. teleflow_sdk-0.0.1/teleflow/objects/gift.py +85 -0
  291. teleflow_sdk-0.0.1/teleflow/objects/gift_background.py +37 -0
  292. teleflow_sdk-0.0.1/teleflow/objects/gift_info.py +73 -0
  293. teleflow_sdk-0.0.1/teleflow/objects/gifts.py +35 -0
  294. teleflow_sdk-0.0.1/teleflow/objects/giveaway.py +67 -0
  295. teleflow_sdk-0.0.1/teleflow/objects/giveaway_completed.py +45 -0
  296. teleflow_sdk-0.0.1/teleflow/objects/giveaway_created.py +29 -0
  297. teleflow_sdk-0.0.1/teleflow/objects/giveaway_winners.py +81 -0
  298. teleflow_sdk-0.0.1/teleflow/objects/inaccessible_message.py +41 -0
  299. teleflow_sdk-0.0.1/teleflow/objects/inline_keyboard_button.py +95 -0
  300. teleflow_sdk-0.0.1/teleflow/objects/inline_keyboard_markup.py +39 -0
  301. teleflow_sdk-0.0.1/teleflow/objects/inline_query.py +55 -0
  302. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result.py +26 -0
  303. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_article.py +71 -0
  304. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_audio.py +79 -0
  305. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_cached_audio.py +67 -0
  306. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_cached_document.py +75 -0
  307. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_cached_gif.py +75 -0
  308. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_cached_mpeg4_gif.py +75 -0
  309. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_cached_photo.py +79 -0
  310. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_cached_sticker.py +51 -0
  311. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_cached_video.py +79 -0
  312. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_cached_voice.py +71 -0
  313. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_contact.py +75 -0
  314. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_document.py +91 -0
  315. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_game.py +45 -0
  316. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_gif.py +95 -0
  317. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_location.py +87 -0
  318. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_mpeg4_gif.py +95 -0
  319. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_photo.py +91 -0
  320. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_venue.py +91 -0
  321. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_video.py +99 -0
  322. teleflow_sdk-0.0.1/teleflow/objects/inline_query_result_voice.py +75 -0
  323. teleflow_sdk-0.0.1/teleflow/objects/inline_query_results_button.py +41 -0
  324. teleflow_sdk-0.0.1/teleflow/objects/input_checklist.py +59 -0
  325. teleflow_sdk-0.0.1/teleflow/objects/input_checklist_task.py +47 -0
  326. teleflow_sdk-0.0.1/teleflow/objects/input_contact_message_content.py +41 -0
  327. teleflow_sdk-0.0.1/teleflow/objects/input_file.py +26 -0
  328. teleflow_sdk-0.0.1/teleflow/objects/input_invoice_message_content.py +111 -0
  329. teleflow_sdk-0.0.1/teleflow/objects/input_location_message_content.py +49 -0
  330. teleflow_sdk-0.0.1/teleflow/objects/input_media.py +26 -0
  331. teleflow_sdk-0.0.1/teleflow/objects/input_media_animation.py +75 -0
  332. teleflow_sdk-0.0.1/teleflow/objects/input_media_audio.py +67 -0
  333. teleflow_sdk-0.0.1/teleflow/objects/input_media_document.py +59 -0
  334. teleflow_sdk-0.0.1/teleflow/objects/input_media_link.py +33 -0
  335. teleflow_sdk-0.0.1/teleflow/objects/input_media_live_photo.py +63 -0
  336. teleflow_sdk-0.0.1/teleflow/objects/input_media_location.py +41 -0
  337. teleflow_sdk-0.0.1/teleflow/objects/input_media_photo.py +59 -0
  338. teleflow_sdk-0.0.1/teleflow/objects/input_media_sticker.py +37 -0
  339. teleflow_sdk-0.0.1/teleflow/objects/input_media_venue.py +61 -0
  340. teleflow_sdk-0.0.1/teleflow/objects/input_media_video.py +87 -0
  341. teleflow_sdk-0.0.1/teleflow/objects/input_media_voice_note.py +55 -0
  342. teleflow_sdk-0.0.1/teleflow/objects/input_message_content.py +26 -0
  343. teleflow_sdk-0.0.1/teleflow/objects/input_paid_media.py +26 -0
  344. teleflow_sdk-0.0.1/teleflow/objects/input_paid_media_live_photo.py +37 -0
  345. teleflow_sdk-0.0.1/teleflow/objects/input_paid_media_photo.py +33 -0
  346. teleflow_sdk-0.0.1/teleflow/objects/input_paid_media_video.py +61 -0
  347. teleflow_sdk-0.0.1/teleflow/objects/input_poll_media.py +26 -0
  348. teleflow_sdk-0.0.1/teleflow/objects/input_poll_option.py +49 -0
  349. teleflow_sdk-0.0.1/teleflow/objects/input_poll_option_media.py +26 -0
  350. teleflow_sdk-0.0.1/teleflow/objects/input_profile_photo.py +26 -0
  351. teleflow_sdk-0.0.1/teleflow/objects/input_profile_photo_animated.py +37 -0
  352. teleflow_sdk-0.0.1/teleflow/objects/input_profile_photo_static.py +33 -0
  353. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block.py +26 -0
  354. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_anchor.py +33 -0
  355. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_animation.py +43 -0
  356. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_audio.py +43 -0
  357. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_block_quotation.py +45 -0
  358. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_buttons.py +43 -0
  359. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_collage.py +45 -0
  360. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_details.py +49 -0
  361. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_divider.py +29 -0
  362. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_document.py +43 -0
  363. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_expandable_block_quotation.py +41 -0
  364. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_footer.py +37 -0
  365. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_list.py +39 -0
  366. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_list_item.py +51 -0
  367. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_map.py +55 -0
  368. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_mathematical_expression.py +33 -0
  369. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_paragraph.py +37 -0
  370. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_photo.py +43 -0
  371. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_preformatted.py +41 -0
  372. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_pull_quotation.py +41 -0
  373. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_section_heading.py +41 -0
  374. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_slideshow.py +45 -0
  375. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_table.py +57 -0
  376. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_thinking.py +37 -0
  377. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_video.py +43 -0
  378. teleflow_sdk-0.0.1/teleflow/objects/input_rich_block_voice_note.py +43 -0
  379. teleflow_sdk-0.0.1/teleflow/objects/input_rich_message.py +59 -0
  380. teleflow_sdk-0.0.1/teleflow/objects/input_rich_message_content.py +33 -0
  381. teleflow_sdk-0.0.1/teleflow/objects/input_rich_message_media.py +47 -0
  382. teleflow_sdk-0.0.1/teleflow/objects/input_sticker.py +49 -0
  383. teleflow_sdk-0.0.1/teleflow/objects/input_story_content.py +26 -0
  384. teleflow_sdk-0.0.1/teleflow/objects/input_story_content_photo.py +33 -0
  385. teleflow_sdk-0.0.1/teleflow/objects/input_story_content_video.py +45 -0
  386. teleflow_sdk-0.0.1/teleflow/objects/input_text_message_content.py +49 -0
  387. teleflow_sdk-0.0.1/teleflow/objects/input_venue_message_content.py +57 -0
  388. teleflow_sdk-0.0.1/teleflow/objects/invoice.py +45 -0
  389. teleflow_sdk-0.0.1/teleflow/objects/keyboard_button.py +77 -0
  390. teleflow_sdk-0.0.1/teleflow/objects/keyboard_button_poll_type.py +29 -0
  391. teleflow_sdk-0.0.1/teleflow/objects/keyboard_button_request_chat.py +73 -0
  392. teleflow_sdk-0.0.1/teleflow/objects/keyboard_button_request_managed_bot.py +37 -0
  393. teleflow_sdk-0.0.1/teleflow/objects/keyboard_button_request_users.py +53 -0
  394. teleflow_sdk-0.0.1/teleflow/objects/labeled_price.py +33 -0
  395. teleflow_sdk-0.0.1/teleflow/objects/link.py +29 -0
  396. teleflow_sdk-0.0.1/teleflow/objects/link_preview_options.py +45 -0
  397. teleflow_sdk-0.0.1/teleflow/objects/live_photo.py +63 -0
  398. teleflow_sdk-0.0.1/teleflow/objects/location.py +49 -0
  399. teleflow_sdk-0.0.1/teleflow/objects/location_address.py +41 -0
  400. teleflow_sdk-0.0.1/teleflow/objects/login_url.py +41 -0
  401. teleflow_sdk-0.0.1/teleflow/objects/managed_bot_created.py +33 -0
  402. teleflow_sdk-0.0.1/teleflow/objects/managed_bot_updated.py +37 -0
  403. teleflow_sdk-0.0.1/teleflow/objects/mask_position.py +41 -0
  404. teleflow_sdk-0.0.1/teleflow/objects/maybe_inaccessible_message.py +26 -0
  405. teleflow_sdk-0.0.1/teleflow/objects/menu_button.py +26 -0
  406. teleflow_sdk-0.0.1/teleflow/objects/menu_button_commands.py +29 -0
  407. teleflow_sdk-0.0.1/teleflow/objects/menu_button_default.py +29 -0
  408. teleflow_sdk-0.0.1/teleflow/objects/menu_button_web_app.py +41 -0
  409. teleflow_sdk-0.0.1/teleflow/objects/message.py +667 -0
  410. teleflow_sdk-0.0.1/teleflow/objects/message_auto_delete_timer_changed.py +29 -0
  411. teleflow_sdk-0.0.1/teleflow/objects/message_entity.py +65 -0
  412. teleflow_sdk-0.0.1/teleflow/objects/message_generation_stopped.py +41 -0
  413. teleflow_sdk-0.0.1/teleflow/objects/message_id.py +29 -0
  414. teleflow_sdk-0.0.1/teleflow/objects/message_origin.py +26 -0
  415. teleflow_sdk-0.0.1/teleflow/objects/message_origin_channel.py +49 -0
  416. teleflow_sdk-0.0.1/teleflow/objects/message_origin_chat.py +45 -0
  417. teleflow_sdk-0.0.1/teleflow/objects/message_origin_hidden_user.py +37 -0
  418. teleflow_sdk-0.0.1/teleflow/objects/message_origin_user.py +41 -0
  419. teleflow_sdk-0.0.1/teleflow/objects/message_reaction_count_updated.py +49 -0
  420. teleflow_sdk-0.0.1/teleflow/objects/message_reaction_updated.py +65 -0
  421. teleflow_sdk-0.0.1/teleflow/objects/order_info.py +45 -0
  422. teleflow_sdk-0.0.1/teleflow/objects/owned_gift.py +26 -0
  423. teleflow_sdk-0.0.1/teleflow/objects/owned_gift_regular.py +95 -0
  424. teleflow_sdk-0.0.1/teleflow/objects/owned_gift_unique.py +67 -0
  425. teleflow_sdk-0.0.1/teleflow/objects/owned_gifts.py +43 -0
  426. teleflow_sdk-0.0.1/teleflow/objects/paid_media.py +26 -0
  427. teleflow_sdk-0.0.1/teleflow/objects/paid_media_info.py +39 -0
  428. teleflow_sdk-0.0.1/teleflow/objects/paid_media_live_photo.py +37 -0
  429. teleflow_sdk-0.0.1/teleflow/objects/paid_media_photo.py +39 -0
  430. teleflow_sdk-0.0.1/teleflow/objects/paid_media_preview.py +41 -0
  431. teleflow_sdk-0.0.1/teleflow/objects/paid_media_purchased.py +37 -0
  432. teleflow_sdk-0.0.1/teleflow/objects/paid_media_video.py +37 -0
  433. teleflow_sdk-0.0.1/teleflow/objects/paid_message_price_changed.py +29 -0
  434. teleflow_sdk-0.0.1/teleflow/objects/passport_data.py +41 -0
  435. teleflow_sdk-0.0.1/teleflow/objects/passport_element_error.py +26 -0
  436. teleflow_sdk-0.0.1/teleflow/objects/passport_element_error_data_field.py +45 -0
  437. teleflow_sdk-0.0.1/teleflow/objects/passport_element_error_file.py +41 -0
  438. teleflow_sdk-0.0.1/teleflow/objects/passport_element_error_files.py +41 -0
  439. teleflow_sdk-0.0.1/teleflow/objects/passport_element_error_front_side.py +41 -0
  440. teleflow_sdk-0.0.1/teleflow/objects/passport_element_error_reverse_side.py +41 -0
  441. teleflow_sdk-0.0.1/teleflow/objects/passport_element_error_selfie.py +41 -0
  442. teleflow_sdk-0.0.1/teleflow/objects/passport_element_error_translation_file.py +41 -0
  443. teleflow_sdk-0.0.1/teleflow/objects/passport_element_error_translation_files.py +41 -0
  444. teleflow_sdk-0.0.1/teleflow/objects/passport_element_error_unspecified.py +41 -0
  445. teleflow_sdk-0.0.1/teleflow/objects/passport_file.py +41 -0
  446. teleflow_sdk-0.0.1/teleflow/objects/photo_size.py +45 -0
  447. teleflow_sdk-0.0.1/teleflow/objects/poll.py +125 -0
  448. teleflow_sdk-0.0.1/teleflow/objects/poll_answer.py +51 -0
  449. teleflow_sdk-0.0.1/teleflow/objects/poll_media.py +89 -0
  450. teleflow_sdk-0.0.1/teleflow/objects/poll_option.py +69 -0
  451. teleflow_sdk-0.0.1/teleflow/objects/poll_option_added.py +49 -0
  452. teleflow_sdk-0.0.1/teleflow/objects/poll_option_deleted.py +49 -0
  453. teleflow_sdk-0.0.1/teleflow/objects/pre_checkout_query.py +59 -0
  454. teleflow_sdk-0.0.1/teleflow/objects/prepared_inline_message.py +33 -0
  455. teleflow_sdk-0.0.1/teleflow/objects/prepared_keyboard_button.py +29 -0
  456. teleflow_sdk-0.0.1/teleflow/objects/proximity_alert_triggered.py +41 -0
  457. teleflow_sdk-0.0.1/teleflow/objects/reaction_count.py +37 -0
  458. teleflow_sdk-0.0.1/teleflow/objects/reaction_type.py +26 -0
  459. teleflow_sdk-0.0.1/teleflow/objects/reaction_type_custom_emoji.py +33 -0
  460. teleflow_sdk-0.0.1/teleflow/objects/reaction_type_emoji.py +33 -0
  461. teleflow_sdk-0.0.1/teleflow/objects/reaction_type_paid.py +29 -0
  462. teleflow_sdk-0.0.1/teleflow/objects/refunded_payment.py +45 -0
  463. teleflow_sdk-0.0.1/teleflow/objects/reply_keyboard_markup.py +59 -0
  464. teleflow_sdk-0.0.1/teleflow/objects/reply_keyboard_remove.py +33 -0
  465. teleflow_sdk-0.0.1/teleflow/objects/reply_parameters.py +71 -0
  466. teleflow_sdk-0.0.1/teleflow/objects/response_parameters.py +33 -0
  467. teleflow_sdk-0.0.1/teleflow/objects/revenue_withdrawal_state.py +26 -0
  468. teleflow_sdk-0.0.1/teleflow/objects/revenue_withdrawal_state_failed.py +29 -0
  469. teleflow_sdk-0.0.1/teleflow/objects/revenue_withdrawal_state_pending.py +29 -0
  470. teleflow_sdk-0.0.1/teleflow/objects/revenue_withdrawal_state_succeeded.py +37 -0
  471. teleflow_sdk-0.0.1/teleflow/objects/rich_block.py +26 -0
  472. teleflow_sdk-0.0.1/teleflow/objects/rich_block_anchor.py +33 -0
  473. teleflow_sdk-0.0.1/teleflow/objects/rich_block_animation.py +47 -0
  474. teleflow_sdk-0.0.1/teleflow/objects/rich_block_audio.py +43 -0
  475. teleflow_sdk-0.0.1/teleflow/objects/rich_block_block_quotation.py +45 -0
  476. teleflow_sdk-0.0.1/teleflow/objects/rich_block_buttons.py +43 -0
  477. teleflow_sdk-0.0.1/teleflow/objects/rich_block_caption.py +37 -0
  478. teleflow_sdk-0.0.1/teleflow/objects/rich_block_collage.py +45 -0
  479. teleflow_sdk-0.0.1/teleflow/objects/rich_block_details.py +49 -0
  480. teleflow_sdk-0.0.1/teleflow/objects/rich_block_divider.py +29 -0
  481. teleflow_sdk-0.0.1/teleflow/objects/rich_block_document.py +43 -0
  482. teleflow_sdk-0.0.1/teleflow/objects/rich_block_expandable_block_quotation.py +41 -0
  483. teleflow_sdk-0.0.1/teleflow/objects/rich_block_footer.py +37 -0
  484. teleflow_sdk-0.0.1/teleflow/objects/rich_block_list.py +39 -0
  485. teleflow_sdk-0.0.1/teleflow/objects/rich_block_list_item.py +55 -0
  486. teleflow_sdk-0.0.1/teleflow/objects/rich_block_map.py +55 -0
  487. teleflow_sdk-0.0.1/teleflow/objects/rich_block_mathematical_expression.py +33 -0
  488. teleflow_sdk-0.0.1/teleflow/objects/rich_block_paragraph.py +37 -0
  489. teleflow_sdk-0.0.1/teleflow/objects/rich_block_photo.py +49 -0
  490. teleflow_sdk-0.0.1/teleflow/objects/rich_block_preformatted.py +41 -0
  491. teleflow_sdk-0.0.1/teleflow/objects/rich_block_pull_quotation.py +41 -0
  492. teleflow_sdk-0.0.1/teleflow/objects/rich_block_section_heading.py +41 -0
  493. teleflow_sdk-0.0.1/teleflow/objects/rich_block_slideshow.py +45 -0
  494. teleflow_sdk-0.0.1/teleflow/objects/rich_block_table.py +57 -0
  495. teleflow_sdk-0.0.1/teleflow/objects/rich_block_table_cell.py +53 -0
  496. teleflow_sdk-0.0.1/teleflow/objects/rich_block_thinking.py +37 -0
  497. teleflow_sdk-0.0.1/teleflow/objects/rich_block_video.py +47 -0
  498. teleflow_sdk-0.0.1/teleflow/objects/rich_block_voice_note.py +43 -0
  499. teleflow_sdk-0.0.1/teleflow/objects/rich_message.py +39 -0
  500. teleflow_sdk-0.0.1/teleflow/objects/rich_message_button.py +83 -0
  501. teleflow_sdk-0.0.1/teleflow/objects/rich_text.py +26 -0
  502. teleflow_sdk-0.0.1/teleflow/objects/rich_text_anchor.py +33 -0
  503. teleflow_sdk-0.0.1/teleflow/objects/rich_text_anchor_link.py +41 -0
  504. teleflow_sdk-0.0.1/teleflow/objects/rich_text_bank_card_number.py +41 -0
  505. teleflow_sdk-0.0.1/teleflow/objects/rich_text_bold.py +37 -0
  506. teleflow_sdk-0.0.1/teleflow/objects/rich_text_bot_command.py +41 -0
  507. teleflow_sdk-0.0.1/teleflow/objects/rich_text_button.py +37 -0
  508. teleflow_sdk-0.0.1/teleflow/objects/rich_text_cashtag.py +41 -0
  509. teleflow_sdk-0.0.1/teleflow/objects/rich_text_code.py +37 -0
  510. teleflow_sdk-0.0.1/teleflow/objects/rich_text_custom_emoji.py +37 -0
  511. teleflow_sdk-0.0.1/teleflow/objects/rich_text_date_time.py +45 -0
  512. teleflow_sdk-0.0.1/teleflow/objects/rich_text_email_address.py +41 -0
  513. teleflow_sdk-0.0.1/teleflow/objects/rich_text_hashtag.py +41 -0
  514. teleflow_sdk-0.0.1/teleflow/objects/rich_text_italic.py +37 -0
  515. teleflow_sdk-0.0.1/teleflow/objects/rich_text_marked.py +37 -0
  516. teleflow_sdk-0.0.1/teleflow/objects/rich_text_mathematical_expression.py +33 -0
  517. teleflow_sdk-0.0.1/teleflow/objects/rich_text_mention.py +41 -0
  518. teleflow_sdk-0.0.1/teleflow/objects/rich_text_phone_number.py +41 -0
  519. teleflow_sdk-0.0.1/teleflow/objects/rich_text_reference.py +41 -0
  520. teleflow_sdk-0.0.1/teleflow/objects/rich_text_reference_link.py +41 -0
  521. teleflow_sdk-0.0.1/teleflow/objects/rich_text_spoiler.py +37 -0
  522. teleflow_sdk-0.0.1/teleflow/objects/rich_text_strikethrough.py +37 -0
  523. teleflow_sdk-0.0.1/teleflow/objects/rich_text_subscript.py +37 -0
  524. teleflow_sdk-0.0.1/teleflow/objects/rich_text_superscript.py +37 -0
  525. teleflow_sdk-0.0.1/teleflow/objects/rich_text_text_mention.py +43 -0
  526. teleflow_sdk-0.0.1/teleflow/objects/rich_text_underline.py +37 -0
  527. teleflow_sdk-0.0.1/teleflow/objects/rich_text_url.py +41 -0
  528. teleflow_sdk-0.0.1/teleflow/objects/sent_guest_message.py +29 -0
  529. teleflow_sdk-0.0.1/teleflow/objects/sent_web_app_message.py +29 -0
  530. teleflow_sdk-0.0.1/teleflow/objects/shared_user.py +51 -0
  531. teleflow_sdk-0.0.1/teleflow/objects/shipping_address.py +49 -0
  532. teleflow_sdk-0.0.1/teleflow/objects/shipping_option.py +43 -0
  533. teleflow_sdk-0.0.1/teleflow/objects/shipping_query.py +47 -0
  534. teleflow_sdk-0.0.1/teleflow/objects/star_amount.py +33 -0
  535. teleflow_sdk-0.0.1/teleflow/objects/star_transaction.py +53 -0
  536. teleflow_sdk-0.0.1/teleflow/objects/star_transactions.py +35 -0
  537. teleflow_sdk-0.0.1/teleflow/objects/sticker.py +93 -0
  538. teleflow_sdk-0.0.1/teleflow/objects/sticker_set.py +53 -0
  539. teleflow_sdk-0.0.1/teleflow/objects/story.py +37 -0
  540. teleflow_sdk-0.0.1/teleflow/objects/story_area.py +39 -0
  541. teleflow_sdk-0.0.1/teleflow/objects/story_area_position.py +49 -0
  542. teleflow_sdk-0.0.1/teleflow/objects/story_area_type.py +26 -0
  543. teleflow_sdk-0.0.1/teleflow/objects/story_area_type_link.py +33 -0
  544. teleflow_sdk-0.0.1/teleflow/objects/story_area_type_location.py +45 -0
  545. teleflow_sdk-0.0.1/teleflow/objects/story_area_type_suggested_reaction.py +45 -0
  546. teleflow_sdk-0.0.1/teleflow/objects/story_area_type_unique_gift.py +33 -0
  547. teleflow_sdk-0.0.1/teleflow/objects/story_area_type_weather.py +41 -0
  548. teleflow_sdk-0.0.1/teleflow/objects/successful_payment.py +69 -0
  549. teleflow_sdk-0.0.1/teleflow/objects/suggested_post_approval_failed.py +39 -0
  550. teleflow_sdk-0.0.1/teleflow/objects/suggested_post_approved.py +43 -0
  551. teleflow_sdk-0.0.1/teleflow/objects/suggested_post_declined.py +37 -0
  552. teleflow_sdk-0.0.1/teleflow/objects/suggested_post_info.py +41 -0
  553. teleflow_sdk-0.0.1/teleflow/objects/suggested_post_paid.py +47 -0
  554. teleflow_sdk-0.0.1/teleflow/objects/suggested_post_parameters.py +37 -0
  555. teleflow_sdk-0.0.1/teleflow/objects/suggested_post_price.py +33 -0
  556. teleflow_sdk-0.0.1/teleflow/objects/suggested_post_refunded.py +37 -0
  557. teleflow_sdk-0.0.1/teleflow/objects/switch_inline_query_chosen_chat.py +45 -0
  558. teleflow_sdk-0.0.1/teleflow/objects/text_quote.py +47 -0
  559. teleflow_sdk-0.0.1/teleflow/objects/transaction_partner.py +26 -0
  560. teleflow_sdk-0.0.1/teleflow/objects/transaction_partner_affiliate_program.py +41 -0
  561. teleflow_sdk-0.0.1/teleflow/objects/transaction_partner_chat.py +43 -0
  562. teleflow_sdk-0.0.1/teleflow/objects/transaction_partner_fragment.py +37 -0
  563. teleflow_sdk-0.0.1/teleflow/objects/transaction_partner_other.py +29 -0
  564. teleflow_sdk-0.0.1/teleflow/objects/transaction_partner_telegram_ads.py +29 -0
  565. teleflow_sdk-0.0.1/teleflow/objects/transaction_partner_telegram_api.py +33 -0
  566. teleflow_sdk-0.0.1/teleflow/objects/transaction_partner_user.py +77 -0
  567. teleflow_sdk-0.0.1/teleflow/objects/unique_gift.py +85 -0
  568. teleflow_sdk-0.0.1/teleflow/objects/unique_gift_backdrop.py +41 -0
  569. teleflow_sdk-0.0.1/teleflow/objects/unique_gift_backdrop_colors.py +41 -0
  570. teleflow_sdk-0.0.1/teleflow/objects/unique_gift_colors.py +49 -0
  571. teleflow_sdk-0.0.1/teleflow/objects/unique_gift_info.py +73 -0
  572. teleflow_sdk-0.0.1/teleflow/objects/unique_gift_model.py +45 -0
  573. teleflow_sdk-0.0.1/teleflow/objects/unique_gift_symbol.py +41 -0
  574. teleflow_sdk-0.0.1/teleflow/objects/update.py +179 -0
  575. teleflow_sdk-0.0.1/teleflow/objects/user.py +97 -0
  576. teleflow_sdk-0.0.1/teleflow/objects/user_chat_boosts.py +35 -0
  577. teleflow_sdk-0.0.1/teleflow/objects/user_profile_audios.py +39 -0
  578. teleflow_sdk-0.0.1/teleflow/objects/user_profile_photos.py +39 -0
  579. teleflow_sdk-0.0.1/teleflow/objects/user_rating.py +41 -0
  580. teleflow_sdk-0.0.1/teleflow/objects/users_shared.py +39 -0
  581. teleflow_sdk-0.0.1/teleflow/objects/venue.py +57 -0
  582. teleflow_sdk-0.0.1/teleflow/objects/video.py +83 -0
  583. teleflow_sdk-0.0.1/teleflow/objects/video_chat_ended.py +29 -0
  584. teleflow_sdk-0.0.1/teleflow/objects/video_chat_participants_invited.py +35 -0
  585. teleflow_sdk-0.0.1/teleflow/objects/video_chat_scheduled.py +29 -0
  586. teleflow_sdk-0.0.1/teleflow/objects/video_chat_started.py +26 -0
  587. teleflow_sdk-0.0.1/teleflow/objects/video_note.py +53 -0
  588. teleflow_sdk-0.0.1/teleflow/objects/video_quality.py +49 -0
  589. teleflow_sdk-0.0.1/teleflow/objects/voice.py +45 -0
  590. teleflow_sdk-0.0.1/teleflow/objects/web_app_data.py +33 -0
  591. teleflow_sdk-0.0.1/teleflow/objects/web_app_info.py +29 -0
  592. teleflow_sdk-0.0.1/teleflow/objects/webhook_info.py +61 -0
  593. teleflow_sdk-0.0.1/teleflow/objects/write_access_allowed.py +37 -0
  594. teleflow_sdk-0.0.1/teleflow/router.py +170 -0
  595. teleflow_sdk-0.0.1/teleflow_sdk.egg-info/PKG-INFO +12 -0
  596. teleflow_sdk-0.0.1/teleflow_sdk.egg-info/SOURCES.txt +597 -0
  597. teleflow_sdk-0.0.1/teleflow_sdk.egg-info/dependency_links.txt +1 -0
  598. teleflow_sdk-0.0.1/teleflow_sdk.egg-info/requires.txt +1 -0
  599. teleflow_sdk-0.0.1/teleflow_sdk.egg-info/top_level.txt +1 -0
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.4
2
+ Name: teleflow-sdk
3
+ Version: 0.0.1
4
+ Summary: A lightweight and elegant Telegram Bot SDK in Python
5
+ Author-email: Armen <kazaryanarmen71@gmail.com>
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.8
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: requests==2.34.2
@@ -0,0 +1,20 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "teleflow-sdk"
7
+ version = "0.0.1"
8
+ description = "A lightweight and elegant Telegram Bot SDK in Python"
9
+ readme = "README.md"
10
+ authors = [{ name = "Armen", email = "kazaryanarmen71@gmail.com" }]
11
+ license = { text = "MIT" }
12
+ dependencies = [
13
+ "requests==2.34.2"
14
+ ]
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Operating System :: OS Independent",
19
+ ]
20
+ requires-python = ">=3.8"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,12 @@
1
+ from .bot import TelegramBot
2
+ from .router import EventRouter
3
+ from .exceptions import TelegramAPIError, TelegramNetworkError, TelegramBadRequestError, TelegramUnauthorizedError
4
+
5
+ __all__ = [
6
+ "TelegramBot",
7
+ "EventRouter",
8
+ "TelegramAPIError",
9
+ "TelegramNetworkError",
10
+ "TelegramBadRequestError",
11
+ "TelegramUnauthorizedError",
12
+ ]
@@ -0,0 +1,128 @@
1
+ import requests
2
+ import json
3
+ import time
4
+ import datetime
5
+ from .exceptions import TelegramBadRequestError, TelegramUnauthorizedError, TelegramNetworkError, TelegramAPIError
6
+ from .methods.get_updates import get_updates
7
+ from .methods import __all__ as all_methods
8
+
9
+ class MethodsProxy:
10
+ def __init__(self, bot: 'TelegramBot'):
11
+ self._bot = bot
12
+ from . import methods
13
+ for method_name in all_methods:
14
+ method_func = getattr(methods, method_name)
15
+ setattr(self, method_name, lambda *args, func=method_func, **kwargs: func(self._bot, *args, **kwargs))
16
+
17
+ class TelegramBot:
18
+ def __init__(self, token: str):
19
+ self.token = token
20
+ self.base_url = f"https://api.telegram.org/bot{token}"
21
+ self.file_url = f"https://api.telegram.org/file/bot{token}"
22
+ self.session = requests.Session()
23
+ self.methods = MethodsProxy(self)
24
+
25
+ def request(self, method_name: str, params: dict | None = None, files: dict | None = None) -> dict:
26
+ url = f"{self.base_url}/{method_name}"
27
+ if params:
28
+ cleaned_params = {}
29
+ for k, v in params.items():
30
+ if v is not None:
31
+ if hasattr(v, 'to_dict'):
32
+ v = v.to_dict()
33
+ elif isinstance(v, list):
34
+ v = [i.to_dict() if hasattr(i, 'to_dict') else i for i in v]
35
+
36
+ if isinstance(v, (dict, list)):
37
+ v = json.dumps(v)
38
+
39
+ original_key = k[:-1] if k.endswith('_') and k[:-1] in ['from', 'photo', 'video', 'document', 'audio', 'sticker', 'animation', 'voice'] else k
40
+ cleaned_params[original_key] = v
41
+ params = cleaned_params
42
+
43
+ try:
44
+ response = self.session.post(url, data=params, files=files, timeout=60)
45
+ except requests.RequestException as e:
46
+ raise TelegramNetworkError(f"Network error during request to {method_name}: {e}")
47
+
48
+ try:
49
+ data = response.json()
50
+ except ValueError:
51
+ raise TelegramAPIError("Received an invalid JSON response from the Telegram server.")
52
+
53
+ if not data.get("ok", False):
54
+ error_code = data.get("error_code")
55
+ description = data.get("description", "Unknown error")
56
+
57
+ if error_code == 401:
58
+ raise TelegramUnauthorizedError(f"Authorization error: {description}", error_code)
59
+ elif error_code == 400:
60
+ raise TelegramBadRequestError(f"Bad request: {description}", error_code)
61
+ else:
62
+ raise TelegramAPIError(f"API error [{error_code}]: {description}", error_code)
63
+
64
+ return data.get("result")
65
+
66
+ def download_file(self, file_path: str, destination_path: str) -> None:
67
+ url = f"{self.file_url}/{file_path}"
68
+ try:
69
+ response = self.session.get(url, stream=True, timeout=60)
70
+ if response.status_code == 200:
71
+ with open(destination_path, 'wb') as f:
72
+ for chunk in response.iter_content(chunk_size=8192):
73
+ f.write(chunk)
74
+ else:
75
+ raise TelegramAPIError(f"Failed to download file. Status code: {response.status_code}")
76
+ except requests.RequestException as e:
77
+ raise TelegramNetworkError(f"Network error while downloading file: {e}")
78
+
79
+ def start_polling(self, router, interval: float = 1.0) -> None:
80
+ offset = 0
81
+
82
+ startup_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
83
+ bot_name = "Bot"
84
+
85
+ try:
86
+ me = self.methods.get_me()
87
+
88
+ if isinstance(me, dict):
89
+ bot_name = f"@{me.get('username')}" if me.get('username') else me.get('first_name', 'Bot')
90
+ elif me:
91
+ username = getattr(me, "username", None)
92
+ first_name = getattr(me, "first_name", None)
93
+ bot_name = f"@{username}" if username else (first_name or "Bot")
94
+ except Exception:
95
+ pass
96
+
97
+ print(
98
+ f"\n"
99
+ f"┌────────────────────────────────────────┐\n"
100
+ f"│ 🤖 TELEFLOW SDK │\n"
101
+ f"├────────────────────────────────────────┤\n"
102
+ f"│ Bot: {bot_name:<27} │\n"
103
+ f"│ Status: 🟢 Polling Active │\n"
104
+ f"│ Started: {startup_time} │\n"
105
+ f"└────────────────────────────────────────┘\n"
106
+ f" (Press Ctrl+C to stop the bot)\n"
107
+ )
108
+
109
+ while True:
110
+ try:
111
+ updates = self.methods.get_updates(offset=offset, timeout=30)
112
+ if updates:
113
+ for update in updates:
114
+ if isinstance(update, dict):
115
+ offset = update.get("update_id", offset) + 1
116
+ router.feed(update)
117
+ else:
118
+ offset = getattr(update, "update_id", offset) + 1
119
+ if hasattr(update, 'to_dict'):
120
+ router.feed(update.to_dict())
121
+ else:
122
+ router.feed(update)
123
+ except KeyboardInterrupt:
124
+ print("Polling stopped by user.")
125
+ break
126
+ except Exception as e:
127
+ print(f"Polling error: {e}")
128
+ time.sleep(interval)
@@ -0,0 +1,17 @@
1
+ class TelegramAPIError(Exception):
2
+ """Base exception for Telegram Bot API errors."""
3
+ def __init__(self, message: str, error_code: int | None = None):
4
+ super().__init__(message)
5
+ self.error_code = error_code
6
+
7
+ class TelegramNetworkError(TelegramAPIError):
8
+ """Network errors or timeouts during API requests."""
9
+ pass
10
+
11
+ class TelegramBadRequestError(TelegramAPIError):
12
+ """Error 400: Bad request or parameters."""
13
+ pass
14
+
15
+ class TelegramUnauthorizedError(TelegramAPIError):
16
+ """Error 401: Invalid bot token."""
17
+ pass
@@ -0,0 +1,373 @@
1
+ from .get_updates import get_updates
2
+ from .set_webhook import set_webhook
3
+ from .delete_webhook import delete_webhook
4
+ from .get_webhook_info import get_webhook_info
5
+ from .get_me import get_me
6
+ from .log_out import log_out
7
+ from .close import close
8
+ from .send_message import send_message
9
+ from .forward_message import forward_message
10
+ from .forward_messages import forward_messages
11
+ from .copy_message import copy_message
12
+ from .copy_messages import copy_messages
13
+ from .send_photo import send_photo
14
+ from .send_live_photo import send_live_photo
15
+ from .send_audio import send_audio
16
+ from .send_document import send_document
17
+ from .send_video import send_video
18
+ from .send_animation import send_animation
19
+ from .send_voice import send_voice
20
+ from .send_video_note import send_video_note
21
+ from .send_paid_media import send_paid_media
22
+ from .send_media_group import send_media_group
23
+ from .send_location import send_location
24
+ from .send_venue import send_venue
25
+ from .send_contact import send_contact
26
+ from .send_poll import send_poll
27
+ from .send_checklist import send_checklist
28
+ from .send_dice import send_dice
29
+ from .send_message_draft import send_message_draft
30
+ from .send_chat_action import send_chat_action
31
+ from .set_message_reaction import set_message_reaction
32
+ from .get_user_profile_photos import get_user_profile_photos
33
+ from .get_user_profile_audios import get_user_profile_audios
34
+ from .set_user_emoji_status import set_user_emoji_status
35
+ from .get_file import get_file
36
+ from .ban_chat_member import ban_chat_member
37
+ from .unban_chat_member import unban_chat_member
38
+ from .restrict_chat_member import restrict_chat_member
39
+ from .promote_chat_member import promote_chat_member
40
+ from .set_chat_administrator_custom_title import set_chat_administrator_custom_title
41
+ from .set_chat_member_tag import set_chat_member_tag
42
+ from .ban_chat_sender_chat import ban_chat_sender_chat
43
+ from .unban_chat_sender_chat import unban_chat_sender_chat
44
+ from .set_chat_permissions import set_chat_permissions
45
+ from .export_chat_invite_link import export_chat_invite_link
46
+ from .create_chat_invite_link import create_chat_invite_link
47
+ from .edit_chat_invite_link import edit_chat_invite_link
48
+ from .create_chat_subscription_invite_link import create_chat_subscription_invite_link
49
+ from .edit_chat_subscription_invite_link import edit_chat_subscription_invite_link
50
+ from .revoke_chat_invite_link import revoke_chat_invite_link
51
+ from .approve_chat_join_request import approve_chat_join_request
52
+ from .decline_chat_join_request import decline_chat_join_request
53
+ from .answer_chat_join_request_query import answer_chat_join_request_query
54
+ from .send_chat_join_request_web_app import send_chat_join_request_web_app
55
+ from .set_chat_photo import set_chat_photo
56
+ from .delete_chat_photo import delete_chat_photo
57
+ from .set_chat_title import set_chat_title
58
+ from .set_chat_description import set_chat_description
59
+ from .pin_chat_message import pin_chat_message
60
+ from .unpin_chat_message import unpin_chat_message
61
+ from .unpin_all_chat_messages import unpin_all_chat_messages
62
+ from .leave_chat import leave_chat
63
+ from .get_chat import get_chat
64
+ from .get_chat_administrators import get_chat_administrators
65
+ from .get_chat_member_count import get_chat_member_count
66
+ from .get_chat_member import get_chat_member
67
+ from .get_user_personal_chat_messages import get_user_personal_chat_messages
68
+ from .set_chat_sticker_set import set_chat_sticker_set
69
+ from .delete_chat_sticker_set import delete_chat_sticker_set
70
+ from .get_forum_topic_icon_stickers import get_forum_topic_icon_stickers
71
+ from .create_forum_topic import create_forum_topic
72
+ from .edit_forum_topic import edit_forum_topic
73
+ from .close_forum_topic import close_forum_topic
74
+ from .reopen_forum_topic import reopen_forum_topic
75
+ from .delete_forum_topic import delete_forum_topic
76
+ from .unpin_all_forum_topic_messages import unpin_all_forum_topic_messages
77
+ from .edit_general_forum_topic import edit_general_forum_topic
78
+ from .close_general_forum_topic import close_general_forum_topic
79
+ from .reopen_general_forum_topic import reopen_general_forum_topic
80
+ from .hide_general_forum_topic import hide_general_forum_topic
81
+ from .unhide_general_forum_topic import unhide_general_forum_topic
82
+ from .unpin_all_general_forum_topic_messages import unpin_all_general_forum_topic_messages
83
+ from .answer_callback_query import answer_callback_query
84
+ from .answer_guest_query import answer_guest_query
85
+ from .get_user_chat_boosts import get_user_chat_boosts
86
+ from .get_business_connection import get_business_connection
87
+ from .get_managed_bot_token import get_managed_bot_token
88
+ from .replace_managed_bot_token import replace_managed_bot_token
89
+ from .get_managed_bot_access_settings import get_managed_bot_access_settings
90
+ from .set_managed_bot_access_settings import set_managed_bot_access_settings
91
+ from .set_my_commands import set_my_commands
92
+ from .delete_my_commands import delete_my_commands
93
+ from .get_my_commands import get_my_commands
94
+ from .set_my_name import set_my_name
95
+ from .get_my_name import get_my_name
96
+ from .set_my_description import set_my_description
97
+ from .get_my_description import get_my_description
98
+ from .set_my_short_description import set_my_short_description
99
+ from .get_my_short_description import get_my_short_description
100
+ from .set_my_profile_photo import set_my_profile_photo
101
+ from .remove_my_profile_photo import remove_my_profile_photo
102
+ from .set_chat_menu_button import set_chat_menu_button
103
+ from .get_chat_menu_button import get_chat_menu_button
104
+ from .set_my_default_administrator_rights import set_my_default_administrator_rights
105
+ from .get_my_default_administrator_rights import get_my_default_administrator_rights
106
+ from .get_available_gifts import get_available_gifts
107
+ from .send_gift import send_gift
108
+ from .gift_premium_subscription import gift_premium_subscription
109
+ from .verify_user import verify_user
110
+ from .verify_chat import verify_chat
111
+ from .remove_user_verification import remove_user_verification
112
+ from .remove_chat_verification import remove_chat_verification
113
+ from .read_business_message import read_business_message
114
+ from .delete_business_messages import delete_business_messages
115
+ from .set_business_account_name import set_business_account_name
116
+ from .set_business_account_username import set_business_account_username
117
+ from .set_business_account_bio import set_business_account_bio
118
+ from .set_business_account_profile_photo import set_business_account_profile_photo
119
+ from .remove_business_account_profile_photo import remove_business_account_profile_photo
120
+ from .set_business_account_gift_settings import set_business_account_gift_settings
121
+ from .get_business_account_star_balance import get_business_account_star_balance
122
+ from .transfer_business_account_stars import transfer_business_account_stars
123
+ from .get_business_account_gifts import get_business_account_gifts
124
+ from .get_user_gifts import get_user_gifts
125
+ from .get_chat_gifts import get_chat_gifts
126
+ from .convert_gift_to_stars import convert_gift_to_stars
127
+ from .upgrade_gift import upgrade_gift
128
+ from .transfer_gift import transfer_gift
129
+ from .post_story import post_story
130
+ from .repost_story import repost_story
131
+ from .edit_story import edit_story
132
+ from .delete_story import delete_story
133
+ from .answer_web_app_query import answer_web_app_query
134
+ from .save_prepared_inline_message import save_prepared_inline_message
135
+ from .save_prepared_keyboard_button import save_prepared_keyboard_button
136
+ from .edit_message_text import edit_message_text
137
+ from .edit_message_caption import edit_message_caption
138
+ from .edit_message_media import edit_message_media
139
+ from .edit_message_live_location import edit_message_live_location
140
+ from .stop_message_live_location import stop_message_live_location
141
+ from .edit_message_checklist import edit_message_checklist
142
+ from .edit_message_reply_markup import edit_message_reply_markup
143
+ from .stop_poll import stop_poll
144
+ from .edit_ephemeral_message_text import edit_ephemeral_message_text
145
+ from .edit_ephemeral_message_media import edit_ephemeral_message_media
146
+ from .edit_ephemeral_message_caption import edit_ephemeral_message_caption
147
+ from .edit_ephemeral_message_reply_markup import edit_ephemeral_message_reply_markup
148
+ from .approve_suggested_post import approve_suggested_post
149
+ from .decline_suggested_post import decline_suggested_post
150
+ from .delete_message import delete_message
151
+ from .delete_messages import delete_messages
152
+ from .delete_ephemeral_message import delete_ephemeral_message
153
+ from .delete_message_reaction import delete_message_reaction
154
+ from .delete_all_message_reactions import delete_all_message_reactions
155
+ from .send_sticker import send_sticker
156
+ from .get_sticker_set import get_sticker_set
157
+ from .get_custom_emoji_stickers import get_custom_emoji_stickers
158
+ from .upload_sticker_file import upload_sticker_file
159
+ from .create_new_sticker_set import create_new_sticker_set
160
+ from .add_sticker_to_set import add_sticker_to_set
161
+ from .set_sticker_position_in_set import set_sticker_position_in_set
162
+ from .delete_sticker_from_set import delete_sticker_from_set
163
+ from .replace_sticker_in_set import replace_sticker_in_set
164
+ from .set_sticker_emoji_list import set_sticker_emoji_list
165
+ from .set_sticker_keywords import set_sticker_keywords
166
+ from .set_sticker_mask_position import set_sticker_mask_position
167
+ from .set_sticker_set_title import set_sticker_set_title
168
+ from .set_sticker_set_thumbnail import set_sticker_set_thumbnail
169
+ from .set_custom_emoji_sticker_set_thumbnail import set_custom_emoji_sticker_set_thumbnail
170
+ from .delete_sticker_set import delete_sticker_set
171
+ from .send_rich_message import send_rich_message
172
+ from .send_rich_message_draft import send_rich_message_draft
173
+ from .answer_inline_query import answer_inline_query
174
+ from .send_invoice import send_invoice
175
+ from .create_invoice_link import create_invoice_link
176
+ from .answer_shipping_query import answer_shipping_query
177
+ from .answer_pre_checkout_query import answer_pre_checkout_query
178
+ from .get_my_star_balance import get_my_star_balance
179
+ from .get_star_transactions import get_star_transactions
180
+ from .refund_star_payment import refund_star_payment
181
+ from .edit_user_star_subscription import edit_user_star_subscription
182
+ from .set_passport_data_errors import set_passport_data_errors
183
+ from .send_game import send_game
184
+ from .set_game_score import set_game_score
185
+ from .get_game_high_scores import get_game_high_scores
186
+
187
+ __all__ = [
188
+ 'get_updates',
189
+ 'set_webhook',
190
+ 'delete_webhook',
191
+ 'get_webhook_info',
192
+ 'get_me',
193
+ 'log_out',
194
+ 'close',
195
+ 'send_message',
196
+ 'forward_message',
197
+ 'forward_messages',
198
+ 'copy_message',
199
+ 'copy_messages',
200
+ 'send_photo',
201
+ 'send_live_photo',
202
+ 'send_audio',
203
+ 'send_document',
204
+ 'send_video',
205
+ 'send_animation',
206
+ 'send_voice',
207
+ 'send_video_note',
208
+ 'send_paid_media',
209
+ 'send_media_group',
210
+ 'send_location',
211
+ 'send_venue',
212
+ 'send_contact',
213
+ 'send_poll',
214
+ 'send_checklist',
215
+ 'send_dice',
216
+ 'send_message_draft',
217
+ 'send_chat_action',
218
+ 'set_message_reaction',
219
+ 'get_user_profile_photos',
220
+ 'get_user_profile_audios',
221
+ 'set_user_emoji_status',
222
+ 'get_file',
223
+ 'ban_chat_member',
224
+ 'unban_chat_member',
225
+ 'restrict_chat_member',
226
+ 'promote_chat_member',
227
+ 'set_chat_administrator_custom_title',
228
+ 'set_chat_member_tag',
229
+ 'ban_chat_sender_chat',
230
+ 'unban_chat_sender_chat',
231
+ 'set_chat_permissions',
232
+ 'export_chat_invite_link',
233
+ 'create_chat_invite_link',
234
+ 'edit_chat_invite_link',
235
+ 'create_chat_subscription_invite_link',
236
+ 'edit_chat_subscription_invite_link',
237
+ 'revoke_chat_invite_link',
238
+ 'approve_chat_join_request',
239
+ 'decline_chat_join_request',
240
+ 'answer_chat_join_request_query',
241
+ 'send_chat_join_request_web_app',
242
+ 'set_chat_photo',
243
+ 'delete_chat_photo',
244
+ 'set_chat_title',
245
+ 'set_chat_description',
246
+ 'pin_chat_message',
247
+ 'unpin_chat_message',
248
+ 'unpin_all_chat_messages',
249
+ 'leave_chat',
250
+ 'get_chat',
251
+ 'get_chat_administrators',
252
+ 'get_chat_member_count',
253
+ 'get_chat_member',
254
+ 'get_user_personal_chat_messages',
255
+ 'set_chat_sticker_set',
256
+ 'delete_chat_sticker_set',
257
+ 'get_forum_topic_icon_stickers',
258
+ 'create_forum_topic',
259
+ 'edit_forum_topic',
260
+ 'close_forum_topic',
261
+ 'reopen_forum_topic',
262
+ 'delete_forum_topic',
263
+ 'unpin_all_forum_topic_messages',
264
+ 'edit_general_forum_topic',
265
+ 'close_general_forum_topic',
266
+ 'reopen_general_forum_topic',
267
+ 'hide_general_forum_topic',
268
+ 'unhide_general_forum_topic',
269
+ 'unpin_all_general_forum_topic_messages',
270
+ 'answer_callback_query',
271
+ 'answer_guest_query',
272
+ 'get_user_chat_boosts',
273
+ 'get_business_connection',
274
+ 'get_managed_bot_token',
275
+ 'replace_managed_bot_token',
276
+ 'get_managed_bot_access_settings',
277
+ 'set_managed_bot_access_settings',
278
+ 'set_my_commands',
279
+ 'delete_my_commands',
280
+ 'get_my_commands',
281
+ 'set_my_name',
282
+ 'get_my_name',
283
+ 'set_my_description',
284
+ 'get_my_description',
285
+ 'set_my_short_description',
286
+ 'get_my_short_description',
287
+ 'set_my_profile_photo',
288
+ 'remove_my_profile_photo',
289
+ 'set_chat_menu_button',
290
+ 'get_chat_menu_button',
291
+ 'set_my_default_administrator_rights',
292
+ 'get_my_default_administrator_rights',
293
+ 'get_available_gifts',
294
+ 'send_gift',
295
+ 'gift_premium_subscription',
296
+ 'verify_user',
297
+ 'verify_chat',
298
+ 'remove_user_verification',
299
+ 'remove_chat_verification',
300
+ 'read_business_message',
301
+ 'delete_business_messages',
302
+ 'set_business_account_name',
303
+ 'set_business_account_username',
304
+ 'set_business_account_bio',
305
+ 'set_business_account_profile_photo',
306
+ 'remove_business_account_profile_photo',
307
+ 'set_business_account_gift_settings',
308
+ 'get_business_account_star_balance',
309
+ 'transfer_business_account_stars',
310
+ 'get_business_account_gifts',
311
+ 'get_user_gifts',
312
+ 'get_chat_gifts',
313
+ 'convert_gift_to_stars',
314
+ 'upgrade_gift',
315
+ 'transfer_gift',
316
+ 'post_story',
317
+ 'repost_story',
318
+ 'edit_story',
319
+ 'delete_story',
320
+ 'answer_web_app_query',
321
+ 'save_prepared_inline_message',
322
+ 'save_prepared_keyboard_button',
323
+ 'edit_message_text',
324
+ 'edit_message_caption',
325
+ 'edit_message_media',
326
+ 'edit_message_live_location',
327
+ 'stop_message_live_location',
328
+ 'edit_message_checklist',
329
+ 'edit_message_reply_markup',
330
+ 'stop_poll',
331
+ 'edit_ephemeral_message_text',
332
+ 'edit_ephemeral_message_media',
333
+ 'edit_ephemeral_message_caption',
334
+ 'edit_ephemeral_message_reply_markup',
335
+ 'approve_suggested_post',
336
+ 'decline_suggested_post',
337
+ 'delete_message',
338
+ 'delete_messages',
339
+ 'delete_ephemeral_message',
340
+ 'delete_message_reaction',
341
+ 'delete_all_message_reactions',
342
+ 'send_sticker',
343
+ 'get_sticker_set',
344
+ 'get_custom_emoji_stickers',
345
+ 'upload_sticker_file',
346
+ 'create_new_sticker_set',
347
+ 'add_sticker_to_set',
348
+ 'set_sticker_position_in_set',
349
+ 'delete_sticker_from_set',
350
+ 'replace_sticker_in_set',
351
+ 'set_sticker_emoji_list',
352
+ 'set_sticker_keywords',
353
+ 'set_sticker_mask_position',
354
+ 'set_sticker_set_title',
355
+ 'set_sticker_set_thumbnail',
356
+ 'set_custom_emoji_sticker_set_thumbnail',
357
+ 'delete_sticker_set',
358
+ 'send_rich_message',
359
+ 'send_rich_message_draft',
360
+ 'answer_inline_query',
361
+ 'send_invoice',
362
+ 'create_invoice_link',
363
+ 'answer_shipping_query',
364
+ 'answer_pre_checkout_query',
365
+ 'get_my_star_balance',
366
+ 'get_star_transactions',
367
+ 'refund_star_payment',
368
+ 'edit_user_star_subscription',
369
+ 'set_passport_data_errors',
370
+ 'send_game',
371
+ 'set_game_score',
372
+ 'get_game_high_scores',
373
+ ]
@@ -0,0 +1,18 @@
1
+ from __future__ import annotations
2
+ from typing import TYPE_CHECKING
3
+
4
+ if TYPE_CHECKING:
5
+ from ..objects.input_sticker import InputSticker
6
+ from ..bot import TelegramBot
7
+
8
+ def add_sticker_to_set(bot: TelegramBot, user_id: int, name: str, sticker_: InputSticker) -> bool:
9
+ """Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success."""
10
+ payload = {
11
+ 'user_id': user_id,
12
+ 'name': name,
13
+ }
14
+ files = {
15
+ 'sticker': sticker_,
16
+ }
17
+ files = {k: v for k, v in files.items() if v is not None}
18
+ return bot.request('addStickerToSet', payload, files=files if files else None)
@@ -0,0 +1,16 @@
1
+ from __future__ import annotations
2
+ from typing import TYPE_CHECKING
3
+
4
+ if TYPE_CHECKING:
5
+ from ..bot import TelegramBot
6
+
7
+ def answer_callback_query(bot: TelegramBot, callback_query_id: str, text: str | None = None, show_alert: bool | None = None, url: str | None = None, cache_time: int | None = None) -> bool:
8
+ """Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned."""
9
+ payload = {
10
+ 'callback_query_id': callback_query_id,
11
+ 'text': text,
12
+ 'show_alert': show_alert,
13
+ 'url': url,
14
+ 'cache_time': cache_time,
15
+ }
16
+ return bot.request('answerCallbackQuery', payload)
@@ -0,0 +1,13 @@
1
+ from __future__ import annotations
2
+ from typing import TYPE_CHECKING
3
+
4
+ if TYPE_CHECKING:
5
+ from ..bot import TelegramBot
6
+
7
+ def answer_chat_join_request_query(bot: TelegramBot, chat_join_request_query_id: str, result: str) -> bool:
8
+ """Use this method to process a received chat join request query. Returns True on success."""
9
+ payload = {
10
+ 'chat_join_request_query_id': chat_join_request_query_id,
11
+ 'result': result,
12
+ }
13
+ return bot.request('answerChatJoinRequestQuery', payload)
@@ -0,0 +1,15 @@
1
+ from __future__ import annotations
2
+ from typing import TYPE_CHECKING
3
+
4
+ if TYPE_CHECKING:
5
+ from ..objects.inline_query_result import InlineQueryResult
6
+ from ..objects.sent_guest_message import SentGuestMessage
7
+ from ..bot import TelegramBot
8
+
9
+ def answer_guest_query(bot: TelegramBot, guest_query_id: str, result: InlineQueryResult) -> SentGuestMessage:
10
+ """Use this method to reply to a received guest message. On success, a SentGuestMessage object is returned."""
11
+ payload = {
12
+ 'guest_query_id': guest_query_id,
13
+ 'result': result,
14
+ }
15
+ return bot.request('answerGuestQuery', payload)
@@ -0,0 +1,19 @@
1
+ from __future__ import annotations
2
+ from typing import TYPE_CHECKING
3
+
4
+ if TYPE_CHECKING:
5
+ from ..objects.inline_query_result import InlineQueryResult
6
+ from ..objects.inline_query_results_button import InlineQueryResultsButton
7
+ from ..bot import TelegramBot
8
+
9
+ def answer_inline_query(bot: TelegramBot, inline_query_id: str, results: list[InlineQueryResult], cache_time: int | None = None, is_personal: bool | None = None, next_offset: str | None = None, button: InlineQueryResultsButton | None = None) -> bool:
10
+ """Use this method to send answers to an inline query. On success, True is returned. No more than 50 results per query are allowed."""
11
+ payload = {
12
+ 'inline_query_id': inline_query_id,
13
+ 'results': results,
14
+ 'cache_time': cache_time,
15
+ 'is_personal': is_personal,
16
+ 'next_offset': next_offset,
17
+ 'button': button,
18
+ }
19
+ return bot.request('answerInlineQuery', payload)
@@ -0,0 +1,14 @@
1
+ from __future__ import annotations
2
+ from typing import TYPE_CHECKING
3
+
4
+ if TYPE_CHECKING:
5
+ from ..bot import TelegramBot
6
+
7
+ def answer_pre_checkout_query(bot: TelegramBot, pre_checkout_query_id: str, ok: bool, error_message: str | None = None) -> bool:
8
+ """Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent."""
9
+ payload = {
10
+ 'pre_checkout_query_id': pre_checkout_query_id,
11
+ 'ok': ok,
12
+ 'error_message': error_message,
13
+ }
14
+ return bot.request('answerPreCheckoutQuery', payload)