id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
TeleBot/Types_of_API_121_0.txt | _ class _ telebot.types. LoginUrl ( _ url _ , _ forward_text = None _
, _ bot_username = None _ , _ request_write_access = None _ , _ **
kwargs _ ) ¶
Bases: ` Dictionaryable ` , ` JsonSerializable ` , ` JsonDeserializable
`
This object represents a parameter of the inline keyboard button us... | |
TeleBot/TeleBot_methods_2_27.txt | :
* **message** ( [ ` telebot.types.Message ` ](../types.html#telebot.types.Message "telebot.types.Message") ) – The message for which we are awaiting a reply.
* **callback** ( ` Callable[[telebot.types.Message], None] ` ) – The callback function to be called when a reply arrives. Must accept one mess... | |
TeleBot/Types_of_API_132_0.txt | _ class _ telebot.types. MessageEntity ( _ type _ , _ offset _ , _
length _ , _ url = None _ , _ user = None _ , _ language = None _ ,
_ custom_emoji_id = None _ , _ ** kwargs _ ) ¶
Bases: ` Dictionaryable ` , ` JsonSerializable ` , ` JsonDeserializable
`
This object represents one sp... | |
TeleBot/Types_of_API_28_0.txt | _ class _ telebot.types. ChatBoostSource ¶
Bases: ` ABC ` , ` JsonDeserializable `
This object describes the source of a chat boost. It can be one of
ChatBoostSourcePremium ChatBoostSourceGiftCode ChatBoostSourceGiveaway
Telegram documentation: [ https://core.telegram.org/bots/api#chatboostsource
... | |
TeleBot/Types_of_API_118_0.txt | _ class _ telebot.types. LabeledPrice ( _ label _ , _ amount _ ) ¶
Bases: ` JsonSerializable ` , ` Dictionaryable `
This object represents a portion of the price for goods or services.
Telegram Documentation: [ https://core.telegram.org/bots/api#labeledprice
](https://core.telegram.org/bots/api#labe... | |
TeleBot/TeleBot_2_27.txt | :
* **message** ( [ ` telebot.types.Message ` ](../types.html#telebot.types.Message "telebot.types.Message") ) – The message for which we are awaiting a reply.
* **callback** ( ` Callable[[telebot.types.Message], None] ` ) – The callback function to be called when a reply arrives. Must accept one mess... | |
TeleBot/TeleBot_methods_2_16.txt | -save/states.pkl”
export_chat_invite_link ( _ chat_id : int | str _ ) → str #
Use this method to export an invite link to a supergroup or a channel. The bot
must be an administrator in the chat for this to work and must have the
appropriate admin rights.
Telegram documentation: [
Parameters :
... | |
TeleBot/custom_filters_12_0.txt | _ class _ telebot.custom_filters. TextMatchFilter #
Bases: ` AdvancedCustomFilter `
Filter to check Text message.
Example on using this filter: #
@bot.message_handler(text=['account'])
# your function
key _ : str _ _ = 'text' _ #
| |
TeleBot/Types_of_API_127_1.txt | ew_options** ( ` telebot.types.LinkPreviewOptions ` ) – Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed
* **animation** ( ` telebot.types.Animation ` ) – Optional. Message is an animation, information about the animation. For back... | |
TeleBot/Types_of_API_156_0.txt | _ class _ telebot.types. SharedUser ( _ user_id _ , _ first_name = None
_ , _ last_name = None _ , _ username = None _ , _ photo = None _ , _
** kwargs _ ) ¶
Bases: ` JsonDeserializable `
This object contains information about a user that was shared with the bot
using a KeyboardButtonReques... | |
TeleBot/Types_of_API_178_0.txt | _ class _ telebot.types. Voice ( _ file_id _ , _ file_unique_id _ , _
duration _ , _ mime_type = None _ , _ file_size = None _ , _ ** kwargs
_ ) ¶
Bases: ` JsonDeserializable `
This object represents a voice note.
Telegram Documentation: [ https://core.telegram.org/bots/api#voice
](https://cor... | |
TeleBot/TeleBot_18_0.txt | _ class _ telebot.handler_backends. ContinueHandling #
Bases: ` object `
Class for continue updates in handlers. Just return instance of this class in
handlers to continue process.
Example of using ContinueHandling #
@bot.message_handler(commands=['start'])
def start(message):
b... | |
TeleBot/TeleBot_2_54.txt | bot.
Parameters :
* **user_id** ( ` int ` ) – User’s identifier
* **state** ( ` int ` or ` str ` or ` telebot.types.State ` ) – new state. can be string, integer, or ` telebot.types.State `
* **chat_id** ( ` int ` ) – Chat’s identifier
Returns :
None
set_sticker_emoji_list ( _ stic... | |
TeleBot/handler_backends_5_0.txt | _ class _ telebot.handler_backends. State #
Bases: ` object `
Class representing a state.
class MyStates(StatesGroup):
my_state = State() # returns my_state:State string.
| |
TeleBot/TeleBot_methods_2_55.txt | _ secret_token : str | None = None _ ) → bool #
Use this method to specify a URL and receive incoming updates via an outgoing
webhook. Whenever there is an update for the bot, we will send an HTTPS POST
request to the specified URL, containing a JSON-serialized Update. In case of
an unsuccessful reque... | |
TeleBot/Types_of_API_52_0.txt | _ class _ telebot.types. ExternalReplyInfo ( _ origin : MessageOrigin _ , _ chat : Chat | None = None _ , _ message_id : int | None = None _ , _ link_preview_options : LinkPreviewOptions | None = None _ , _ animation : Animation | None = None _ , _ audio : Audio | None = None _... | |
TeleBot/Types_of_API_94_0.txt | _ class _ telebot.types. InlineQueryResultVideo ( _ id _ , _ video_url _
, _ mime_type _ , _ thumbnail_url _ , _ title _ , _ caption = None _ , _
caption_entities = None _ , _ parse_mode = None _ , _ video_width =
None _ , _ video_height = None _ , _ video_duration = None _ , _
description = ... | |
TeleBot/Types_of_API_110_0.txt | _ class _ telebot.types. Invoice ( _ title _ , _ description _ , _
start_parameter _ , _ currency _ , _ total_amount _ , _ ** kwargs _ ) ¶
Bases: ` JsonDeserializable `
This object contains basic information about an invoice.
Telegram Documentation: [ https://core.telegram.org/bots/api#invoice
](... | |
TeleBot/Extensions_0_2.txt | my_description() `
* ` TeleBot.set_my_name() `
* ` TeleBot.set_my_short_description() `
* ` TeleBot.set_state() `
* ` TeleBot.set_sticker_emoji_list() `
* ` TeleBot.set_sticker_keywords() `
* ` TeleBot.set_sticker_mask_position() `
* ` TeleBot.set_sticker_p... | |
TeleBot/Types_of_API_60_0.txt | _ class _ telebot.types. Game ( _ title _ , _ description _ , _ photo _
, _ text = None _ , _ text_entities = None _ , _ animation = None _ ,
_ ** kwargs _ ) ¶
Bases: ` JsonDeserializable `
This object represents a game. Use BotFather to create and edit games, their
short names will act as ... | |
TeleBot/TeleBot_2_8.txt | elebot.types.ForumTopic ` ](../types.html#telebot.types.ForumTopic
"telebot.types.ForumTopic")
create_invoice_link ( _ title : str _ , _ description : str _ , _ payload : str _ , _ provider_token : str _ , _ currency : str _ , _ prices : List [ [ LabeledPrice ](../types.html#telebot.types.Labele... | |
TeleBot/TeleBot_2_15.txt | bool ` ) – deprecated.
* **reply_markup** ( ` InlineKeyboardMarkup ` ) – A JSON-serialized object for an inline keyboard.
* **link_preview_options** ( ` LinkPreviewOptions ` ) – A JSON-serialized object for options used to automatically generate previews for links.
Returns :
On success, if edited m... | |
TeleBot/TeleBot_6_0.txt | _ class _ telebot.custom_filters. IsAdminFilter ( _ bot _ ) #
Bases: ` SimpleCustomFilter `
Check whether the user is administrator / owner of the chat.
Example on using this filter: #
@bot.message_handler(chat_types=['supergroup'], is_chat_admin=True)
# your function
key _ :... | |
TeleBot/Types_of_API_9_0.txt | _ class _ telebot.types. BotCommandScopeChat ( _ chat_id = None _ ) ¶
Bases: ` BotCommandScope `
Represents the scope of bot commands, covering a specific chat.
Telegram Documentation: [
https://core.telegram.org/bots/api#botcommandscopechat
](https://core.telegram.org/bots/api#botcommandscopechat)
... | |
TeleBot/handler_backends_6_0.txt | _ class _ telebot.handler_backends. StatesGroup #
Bases: ` object `
Class representing common states.
class MyStates(StatesGroup):
my_state = State() # returns my_state:State string.
_ property _ state_list #
| |
TeleBot/TeleBot_methods_2_14.txt | name)
* **message_id** ( ` int ` ) – Required if inline_message_id is not specified. Identifier of the sent message
* **inline_message_id** ( ` str ` ) – Required if chat_id and message_id are not specified. Identifier of the inline message
* **reply_markup** ( [ ` telebot.types.InlineKeyboardMarkup ` ](... | |
TeleBot/TeleBot_methods_2_46.txt | ursquare_type : str | None = None _ , _ disable_notification : bool | None = None _ , _ reply_to_message_id : int | None = None _ , _ reply_markup : [ InlineKeyboardMarkup ](../types.html#telebot.types.InlineKeyboardMarkup "telebot.types.InlineKeyboardMarkup") | [ ReplyKeyboardMarkup ](../type... | |
TeleBot/Types_of_API_24_0.txt | _ class _ telebot.types. ChatAdministratorRights ( _ is_anonymous : bool
_ , _ can_manage_chat : bool _ , _ can_delete_messages : bool _ , _
can_manage_video_chats : bool _ , _ can_restrict_members : bool _ , _
can_promote_members : bool _ , _ can_change_info : bool _ , _
can_invite_users : bo... | |
TeleBot/Types_of_API_19_0.txt | _ class _ telebot.types. BusinessMessagesDeleted ( _
business_connection_id _ , _ chat _ , _ message_ids _ , _ ** kwargs _ )
¶
Bases: ` JsonDeserializable `
This object is received when messages are deleted from a connected business
account.
Telegram documentation: [
https://core.telegram.org/bots/a... | |
TeleBot/TeleBot_15_0.txt | _ class _ telebot.custom_filters. TextStartsFilter #
Bases: ` AdvancedCustomFilter `
Filter to check whether message starts with some text.
Example on using this filter: #
# Will work if message.text starts with 'sir'.
@bot.message_handler(text_startswith='sir')
# your function
... | |
TeleBot/Types_of_API_50_0.txt | _ class _ telebot.types. Dictionaryable ¶
Bases: ` object `
Subclasses of this class are guaranteed to be able to be converted to
dictionary. All subclasses of this class must override to_dict.
| |
TeleBot/TeleBot_2_37.txt | ReplyParameters") | None = None _ ) → [ Message ](../types.html#telebot.types.Message "telebot.types.Message") #
Use this method to send general files.
Parameters :
* **chat_id** ( ` int ` or ` str ` ) – Unique identifier for the target chat or username of the target channel (in the format @... | |
TeleBot/TeleBot_2_22.txt | nt_types : List [ str ] | None = None _ , _ chat_types : List [ str ] | None = None _ , _ ** kwargs _ ) #
Handles New incoming message of any kind - text, photo, sticker, etc. As a
parameter to the decorator function, it passes [ ` telebot.types.Message `
](../types.html#telebot.types.Mes... | |
TeleBot/TeleBot_2_16.txt | -save/states.pkl”
export_chat_invite_link ( _ chat_id : int | str _ ) → str #
Use this method to export an invite link to a supergroup or a channel. The bot
must be an administrator in the chat for this to work and must have the
appropriate admin rights.
Telegram documentation: [
Parameters :
... | |
TeleBot/Types_of_API_127_0.txt | _ class _ telebot.types. Message ( _ message_id _ , _ from_user _ , _
date _ , _ chat _ , _ content_type _ , _ options _ , _ json_string _ ) ¶
Bases: ` JsonDeserializable `
This object represents a message.
Telegram Documentation: [ https://core.telegram.org/bots/api#message
](https://core.telegr... | |
TeleBot/handler_backends_2_0.txt | _ class _ telebot.handler_backends. CancelUpdate #
Bases: ` object `
Class for canceling updates. Just return instance of this class in middleware
to skip update. Update will skip handler and execution of post_process in
middlewares.
| |
TeleBot/Types_of_API_100_0.txt | _ class _ telebot.types. InputLocationMessageContent ( _ latitude _ , _
longitude _ , _ horizontal_accuracy = None _ , _ live_period = None _ ,
_ heading = None _ , _ proximity_alert_radius = None _ ) ¶
Bases: ` Dictionaryable `
Represents the content of a location message to be sent as the... | |
TeleBot/TeleBot_methods_2_43.txt | elebot.types.ReplyKeyboardRemove "telebot.types.ReplyKeyboardRemove") | [ ForceReply ](../types.html#telebot.types.ForceReply "telebot.types.ForceReply") | None = None _ , _ timeout : int | None = None _ , _ message_thread_id : int | None = None _ , _ has_spoiler : bool | None = None _ , _ re... | |
TeleBot/Types_of_API_154_0.txt | _ class _ telebot.types. ReplyParameters ( _ message_id : int _ , _ chat_id : int | str | None = None _ , _ allow_sending_without_reply : bool | None = None _ , _ quote : str | None = None _ , _ quote_parse_mode : str | None = None _ , _ quote_entities : List [ MessageEntity ] ... | |
TeleBot/custom_filters_5_0.txt | _ class _ telebot.custom_filters. IsDigitFilter #
Bases: ` SimpleCustomFilter `
Filter to check whether the string is made up of only digits.
Example on using this filter: #
@bot.message_handler(is_digit=True)
# your function
key _ : str _ _ = 'is_digit' _ #
| |
TeleBot/TeleBot_methods_2_4.txt | l. The owner
of the chat will not be able to send messages and join live streams on behalf
of the chat, unless it is unbanned first. The bot must be an administrator in
the supergroup or channel for this to work and must have the appropriate
administrator rights. Returns True on success.
Parameters :
* **ch... | |
TeleBot/Types_of_API_91_0.txt | _ class _ telebot.types. InlineQueryResultMpeg4Gif ( _ id _ , _ mpeg4_url
_ , _ thumbnail_url _ , _ mpeg4_width = None _ , _ mpeg4_height = None
_ , _ title = None _ , _ caption = None _ , _ caption_entities = None
_ , _ parse_mode = None _ , _ reply_markup = None _ , _
input_message_content =... | |
TeleBot/Types_of_API_42_0.txt | _ class _ telebot.types. ChatMemberRestricted ( _ user _ , _ status _ ,
_ custom_title = None _ , _ is_anonymous = None _ , _ can_be_edited =
None _ , _ can_post_messages = None _ , _ can_edit_messages = None _ ,
_ can_delete_messages = None _ , _ can_restrict_members = None _ , _
can_promote_... | |
TeleBot/Types_of_API_102_0.txt | _ class _ telebot.types. InputMediaAnimation ( _ media _ , _ thumbnail =
None _ , _ caption = None _ , _ parse_mode = None _ , _
caption_entities = None _ , _ width = None _ , _ height = None _ , _
duration = None _ , _ has_spoiler = None _ ) ¶
Bases: ` InputMedia `
Represents an ... | |
TeleBot/TeleBot_methods_2_30.txt | ` types.Message ` ](../types.html#telebot.types.Message "telebot.types.Message") ) – Instance of [ ` telebot.types.Message ` ](../types.html#telebot.types.Message "telebot.types.Message")
* **text** ( ` str ` ) – Text of the message.
* **kwargs** – Additional keyword arguments which are passed to ` telebot.T... | |
TeleBot/Types_of_API_177_0.txt | _ class _ telebot.types. VideoNote ( _ file_id _ , _ file_unique_id _ ,
_ length _ , _ duration _ , _ thumbnail = None _ , _ file_size = None
_ , _ ** kwargs _ ) ¶
Bases: ` JsonDeserializable `
This object represents a video message (available in Telegram apps as of
v.4.0).
Telegram Documenta... | |
TeleBot/TeleBot_methods_2_19.txt | lt administrator rights of the bot.
Returns ChatAdministratorRights on success.
Telegram documentation: [
Parameters :
**for_channels** ( ` bool ` ) – Pass True to get the default administrator
rights of the bot in channels. Otherwise, the default administrator rights of
the bot for groups and supergroups wi... | |
TeleBot/Types_of_API_83_0.txt | _ class _ telebot.types. InlineQueryResultCachedSticker ( _ id _ , _
sticker_file_id _ , _ reply_markup = None _ , _ input_message_content =
None _ ) ¶
Bases: ` InlineQueryResultCachedBase `
Represents a link to a sticker stored on the Telegram servers. By default,
this sticker will be sent by the... | |
TeleBot/Types_of_API_46_0.txt | _ class _ telebot.types. ChatShared ( _ request_id : int _ , _ chat_id : int _ , _ title : str | None = None _ , _ photo : List [ PhotoSize ] | None = None _ , _ username : str | None = None _ , _ ** kwargs _ ) ¶
Bases: ` JsonDeserializable `
This object contains informati... | |
TeleBot/TeleBot_14_0.txt | _ class _ telebot.custom_filters. TextMatchFilter #
Bases: ` AdvancedCustomFilter `
Filter to check Text message.
Example on using this filter: #
@bot.message_handler(text=['account'])
# your function
key _ : str _ _ = 'text' _ #
| |
TeleBot/Types_of_API_124_0.txt | _ class _ telebot.types. MenuButtonCommands ( _ type = None _ , _ **
kwargs _ ) ¶
Bases: ` MenuButton `
Represents a menu button, which opens the bot’s list of commands.
Telegram Documentation: [
https://core.telegram.org/bots/api#menubuttoncommands
](https://core.telegram.org/bots/api#menubuttoncom... | |
TeleBot/Types_of_API_16_0.txt | _ class _ telebot.types. BusinessConnection ( _ id _ , _ user _ , _
user_chat_id _ , _ date _ , _ can_reply _ , _ is_enabled _ , _ ** kwargs
_ ) ¶
Bases: ` JsonDeserializable `
This object describes the connection of the bot with a business account.
Telegram documentation: [
https://core.telegram... | |
TeleBot/custom_filters_1_0.txt | _ class _ telebot.custom_filters. AdvancedCustomFilter #
Bases: ` ABC `
Advanced Custom Filter base class. Create child class with check() method.
Accepts two parameters, returns bool: True - filter passed, False - filter
failed. message: Message class text: Filter value given in handler
Child classes shou... | |
TeleBot/Types_of_API_148_0.txt | _ class _ telebot.types. ReactionCount ( _ type : ReactionType _ , _
total_count : int _ , _ ** kwargs _ ) ¶
Bases: ` JsonDeserializable `
This object represents a reaction added to a message along with the number of
times it was added.
Telegram documentation: [ https://core.telegram.org/bots/ap... | |
TeleBot/Types_of_API_85_0.txt | _ class _ telebot.types. InlineQueryResultCachedVoice ( _ id _ , _
voice_file_id _ , _ title _ , _ caption = None _ , _ caption_entities =
None _ , _ parse_mode = None _ , _ reply_markup = None _ , _
input_message_content = None _ ) ¶
Bases: ` InlineQueryResultCachedBase `
Represents a l... | |
TeleBot/TeleBot_2_17.txt |
channel, etc.). Returns a Chat object on success.
Parameters :
**chat_id** ( ` int ` or ` str ` ) – Unique identifier for the target chat
or username of the target supergroup or channel (in the format
@channelusername)
Returns :
Chat information
Return type :
[ ` telebot.types.Chat ` ](.... | |
TeleBot/Types_of_API_13_0.txt | _ class _ telebot.types. BotDescription ( _ description : str _ , _ **
kwargs _ ) ¶
Bases: ` JsonDeserializable `
This object represents a bot description.
Telegram documentation: [ https://core.telegram.org/bots/api#botdescription
](https://core.telegram.org/bots/api#botdescription)
Parameters :
... | |
TeleBot/Types_of_API_167_0.txt | _ class _ telebot.types. User ( _ id _ , _ is_bot _ , _ first_name _ ,
_ last_name = None _ , _ username = None _ , _ language_code = None _
, _ can_join_groups = None _ , _ can_read_all_group_messages = None _ ,
_ supports_inline_queries = None _ , _ is_premium = None _ , _
added_to_attachm... | |
TeleBot/Types_of_API_103_0.txt | _ class _ telebot.types. InputMediaAudio ( _ media _ , _ thumbnail =
None _ , _ caption = None _ , _ parse_mode = None _ , _
caption_entities = None _ , _ duration = None _ , _ performer = None
_ , _ title = None _ ) ¶
Bases: ` InputMedia `
Represents an audio file to be treated as mu... | |
TeleBot/TeleBot_methods_2_8.txt | elebot.types.ForumTopic ` ](../types.html#telebot.types.ForumTopic
"telebot.types.ForumTopic")
create_invoice_link ( _ title : str _ , _ description : str _ , _ payload : str _ , _ provider_token : str _ , _ currency : str _ , _ prices : List [ [ LabeledPrice ](../types.html#telebot.types.Labele... | |
TeleBot/TeleBot_methods_2_42.txt | ypes.ForceReply "telebot.types.ForceReply") | None = None _ , _ timeout : int | None = None _ , _ message_thread_id : int | None = None _ , _ reply_parameters : [ ReplyParameters ](../types.html#telebot.types.ReplyParameters "telebot.types.ReplyParameters") | None = None _ , _ link_preview_opti... | |
TeleBot/Types_of_API_40_0.txt | _ class _ telebot.types. ChatMemberMember ( _ user _ , _ status _ , _
custom_title = None _ , _ is_anonymous = None _ , _ can_be_edited =
None _ , _ can_post_messages = None _ , _ can_edit_messages = None _ ,
_ can_delete_messages = None _ , _ can_restrict_members = None _ , _
can_promote_memb... | |
TeleBot/Types_of_API_168_0.txt | _ class _ telebot.types. UserChatBoosts ( _ boosts _ , _ ** kwargs _ )
¶
Bases: ` JsonDeserializable `
This object represents a list of boosts added to a chat by a user.
Telegram documentation: [ https://core.telegram.org/bots/api#userchatboosts
](https://core.telegram.org/bots/api#userchatboosts)
Pa... | |
TeleBot/TeleBot_2_4.txt | l. The owner
of the chat will not be able to send messages and join live streams on behalf
of the chat, unless it is unbanned first. The bot must be an administrator in
the supergroup or channel for this to work and must have the appropriate
administrator rights. Returns True on success.
Parameters :
* **ch... | |
TeleBot/TeleBot_2_41.txt | contents of the sent message from forwarding and saving
* **message_thread_id** ( ` int ` ) – Identifier of a message thread, in which the message will be sent
* **reply_parameters** ( [ ` telebot.types.ReplyParameters ` ](../types.html#telebot.types.ReplyParameters "telebot.types.ReplyParameters") ) – Reply ... | |
TeleBot/Types_of_API_36_0.txt | _ class _ telebot.types. ChatMember ( _ user _ , _ status _ , _
custom_title = None _ , _ is_anonymous = None _ , _ can_be_edited =
None _ , _ can_post_messages = None _ , _ can_edit_messages = None _ ,
_ can_delete_messages = None _ , _ can_restrict_members = None _ , _
can_promote_members =... | |
TeleBot/Types_of_API_123_0.txt | _ class _ telebot.types. MenuButton ¶
Bases: ` JsonDeserializable ` , ` JsonSerializable ` , ` Dictionaryable
`
This object describes the bot’s menu button in a private chat. It should be
one of
* ` MenuButtonCommands `
* ` MenuButtonWebApp `
* ` MenuButtonDefault `
If a menu button other t... | |
TeleBot/Types_of_API_95_0.txt | _ class _ telebot.types. InlineQueryResultVoice ( _ id _ , _ voice_url _
, _ title _ , _ caption = None _ , _ caption_entities = None _ , _
parse_mode = None _ , _ voice_duration = None _ , _ reply_markup =
None _ , _ input_message_content = None _ ) ¶
Bases: ` InlineQueryResultBase `
... | |
TeleBot/Types_of_API_99_0.txt | _ class _ telebot.types. InputInvoiceMessageContent ( _ title _ , _
description _ , _ payload _ , _ provider_token _ , _ currency _ , _ prices
_ , _ max_tip_amount = None _ , _ suggested_tip_amounts = None _ , _
provider_data = None _ , _ photo_url = None _ , _ photo_size = None _
, _ photo_widt... | |
TeleBot/Types_of_API_30_0.txt | _ class _ telebot.types. ChatBoostSourceGiveaway ( _ source _ , _
giveaway_message_id _ , _ user = None _ , _ is_unclaimed = None _ , _
** kwargs _ ) ¶
Bases: ` ChatBoostSource `
The boost was obtained by the creation of a Telegram Premium giveaway.
Telegram documentation: [
https://core.teleg... | |
TeleBot/Types_of_API_126_0.txt | _ class _ telebot.types. MenuButtonWebApp ( _ type _ , _ text _ , _
web_app _ , _ ** kwargs _ ) ¶
Bases: ` MenuButton `
Represents a menu button, which launches a Web App.
Telegram Documentation: [ https://core.telegram.org/bots/api#menubuttonwebapp
](https://core.telegram.org/bots/api#menubuttonwe... | |
TeleBot/Types_of_API_105_0.txt | _ class _ telebot.types. InputMediaPhoto ( _ media _ , _ caption = None
_ , _ parse_mode = None _ , _ caption_entities = None _ , _ has_spoiler
= None _ ) ¶
Bases: ` InputMedia `
Represents a photo to be sent.
Telegram Documentation: [ https://core.telegram.org/bots/api#inputmediaphoto
](http... | |
TeleBot/Types_of_API_27_0.txt | _ class _ telebot.types. ChatBoostRemoved ( _ chat _ , _ boost_id _ , _
remove_date _ , _ source _ , _ ** kwargs _ ) ¶
Bases: ` JsonDeserializable `
This object represents a boost removed from a chat.
Telegram documentation: [ https://core.telegram.org/bots/api#chatboostremoved
](https://core.tele... | |
TeleBot/TeleBot_7_0.txt | _ class _ telebot.custom_filters. IsDigitFilter #
Bases: ` SimpleCustomFilter `
Filter to check whether the string is made up of only digits.
Example on using this filter: #
@bot.message_handler(is_digit=True)
# your function
key _ : str _ _ = 'is_digit' _ #
| |
TeleBot/Types_of_API_107_0.txt | _ class _ telebot.types. InputSticker ( _ sticker : str | InputFile _ , _ emoji_list : List [ str ] _ , _ format : str | None = None _ , _ mask_position : MaskPosition | None = None _ , _ keywords : List [ str ] | None = None _ ) ¶
Bases: ` Dictionaryable ` , ` JsonSeri... | |
TeleBot/TeleBot_methods_2_17.txt |
channel, etc.). Returns a Chat object on success.
Parameters :
**chat_id** ( ` int ` or ` str ` ) – Unique identifier for the target chat
or username of the target supergroup or channel (in the format
@channelusername)
Returns :
Chat information
Return type :
[ ` telebot.types.Chat ` ](.... | |
TeleBot/TeleBot_methods_2_2.txt | _ is_personal : bool | None = None _ , _ next_offset : str | None = None _ , _ switch_pm_text : str | None = None _ , _ switch_pm_parameter : str | None = None _ , _ button : [ InlineQueryResultsButton ](../types.html#telebot.types.InlineQueryResultsButton "telebot.types.InlineQueryResul... | |
TeleBot/TeleBot_2_46.txt | ursquare_type : str | None = None _ , _ disable_notification : bool | None = None _ , _ reply_to_message_id : int | None = None _ , _ reply_markup : [ InlineKeyboardMarkup ](../types.html#telebot.types.InlineKeyboardMarkup "telebot.types.InlineKeyboardMarkup") | [ ReplyKeyboardMarkup ](../type... | |
TeleBot/Types_of_API_163_0.txt | _ class _ telebot.types. SuccessfulPayment ( _ currency _ , _
total_amount _ , _ invoice_payload _ , _ shipping_option_id = None _ , _
order_info = None _ , _ telegram_payment_charge_id = None _ , _
provider_payment_charge_id = None _ , _ ** kwargs _ ) ¶
Bases: ` JsonDeserializable `
Thi... | |
TeleBot/Types_of_API_81_0.txt | _ class _ telebot.types. InlineQueryResultCachedMpeg4Gif ( _ id _ , _
mpeg4_file_id _ , _ title = None _ , _ description = None _ , _ caption
= None _ , _ caption_entities = None _ , _ parse_mode = None _ , _
reply_markup = None _ , _ input_message_content = None _ ) ¶
Bases: ` Inline... | |
TeleBot/TeleBot_methods_2_39.txt | ypes.html#telebot.types.ForceReply "telebot.types.ForceReply") | None = None _ , _ provider_data : str | None = None _ , _ timeout : int | None = None _ , _ allow_sending_without_reply : bool | None = None _ , _ max_tip_amount : int | None = None _ , _ suggested_tip_amounts : List [ ... | |
TeleBot/Types_of_API_108_0.txt | _ class _ telebot.types. InputTextMessageContent ( _ message_text _ , _
parse_mode = None _ , _ entities = None _ , _ disable_web_page_preview
= None _ , _ link_preview_options = None _ ) ¶
Bases: ` Dictionaryable `
Represents the content of a text message to be sent as the result of an inlin... | |
TeleBot/Types_of_API_180_0.txt | _ class _ telebot.types. VoiceChatParticipantsInvited ( _ * args _ , _
** kwargs _ ) ¶
Bases: ` VideoChatParticipantsInvited `
Deprecated, use ` VideoChatParticipantsInvited ` instead.
| |
TeleBot/Types_of_API_0_0.txt | # Types of API ¶
| |
TeleBot/Types_of_API_65_0.txt | _ class _ telebot.types. GeneralForumTopicUnhidden ¶
Bases: ` JsonDeserializable `
This object represents a service message about General forum topic unhidden in
the chat. Currently holds no information.
Telegram documentation: [
https://core.telegram.org/bots/api#generalforumtopicunhidden
](https://core.... | |
TeleBot/Types_of_API_22_0.txt | _ class _ telebot.types. CallbackQuery ( _ id _ , _ from_user _ , _ data
_ , _ chat_instance _ , _ json_string _ , _ message = None _ , _
inline_message_id = None _ , _ game_short_name = None _ , _ ** kwargs
_ ) ¶
Bases: ` JsonDeserializable `
This object represents an incoming callback que... | |
TeleBot/Types_of_API_69_0.txt | _ class _ telebot.types. GiveawayWinners ( _ chat : Chat _ , _ giveaway_message_id : int _ , _ winners_selection_date : int _ , _ winner_count : int _ , _ winners : List [ User ] _ , _ additional_chat_count : int | None = None _ , _ premium_subscription_month_count : int | None = None... | |
TeleBot/Extensions_0_0.txt | ## Extensions #
[ Next AsyncTeleBot ](../async_version/index.html) [ Previous Types of API
](../types.html)
Copyright © 2022-2023, coder2020official
On this page
* TeleBot version
* TeleBot methods
* ` ExceptionHandler `
* ` ExceptionHandler.handle() `
* ` Handler `
* ` R... | |
TeleBot/TeleBot_2_36.txt | low_sending_without_reply : bool | None = None _ , _ protect_content : bool | None = None _ , _ message_thread_id : int | None = None _ , _ reply_parameters : [ ReplyParameters ](../types.html#telebot.types.ReplyParameters "telebot.types.ReplyParameters") | None = None _ ) → [ Message ](.... | |
TeleBot/Types_of_API_29_0.txt | _ class _ telebot.types. ChatBoostSourceGiftCode ( _ source _ , _ user _
, _ ** kwargs _ ) ¶
Bases: ` ChatBoostSource `
The boost was obtained by the creation of Telegram Premium gift codes to boost
a chat.
Telegram documentation: [
https://core.telegram.org/bots/api#chatboostsourcegiftcode
](https:... | |
TeleBot/Types_of_API_17_0.txt | _ class _ telebot.types. BusinessIntro ( _ title = None _ , _ message
= None _ , _ sticker = None _ , _ ** kwargs _ ) ¶
Bases: ` JsonDeserializable `
This object represents a business intro.
Telegram documentation: [ https://core.telegram.org/bots/api#businessintro
](https://core.telegram.org/... | |
TeleBot/TeleBot_1_0.txt | _ class _ telebot. Handler ( _ callback _ , _ * args _ , _ ** kwargs
_ ) #
Bases: ` object `
Class for (next step|reply) handlers.
telebot. REPLY_MARKUP_TYPES #
telebot
Type :
Module
alias of ` Union ` [ [ ` InlineKeyboardMarkup `
](../types.html#telebot.types.InlineKeyboardMarku... | |
TeleBot/Types_of_API_10_0.txt | _ class _ telebot.types. BotCommandScopeChatAdministrators ( _ chat_id =
None _ ) ¶
Bases: ` BotCommandScope `
Represents the scope of bot commands, covering all administrators of a
specific group or supergroup chat.
Telegram Documentation: [
https://core.telegram.org/bots/api#botcommandscopechatadmin... | |
TeleBot/TeleBot_12_0.txt | _ class _ telebot.custom_filters. TextContainsFilter #
Bases: ` AdvancedCustomFilter `
Filter to check Text message. key: text
Example on using this filter: #
# Will respond if any message.text contains word 'account'
@bot.message_handler(text_contains=['account'])
# your function
... | |
TeleBot/TeleBot_methods_2_0.txt | _ class _ telebot. TeleBot ( _ token: str _ , _ parse_mode: str | None = None _ , _ threaded: bool | None = True _ , _ skip_pending: bool | None = False _ , _ num_threads: int | None = 2 _ , _ next_step_backend: ~telebot.handler_backends.HandlerBackend | None = None _ , _ reply_backe... | |
TeleBot/Types_of_API_66_0.txt | _ class _ telebot.types. Giveaway ( _ chats : List [ Chat ] _ , _ winners_selection_date : int _ , _ winner_count : int _ , _ only_new_members : bool | None = None _ , _ has_public_winners : bool | None = None _ , _ prize_description : str | None = None _ , _ country_codes : List ... | |
TeleBot/Types_of_API_160_0.txt | _ class _ telebot.types. Sticker ( _ file_id _ , _ file_unique_id _ , _
type _ , _ width _ , _ height _ , _ is_animated _ , _ is_video _ , _
thumbnail = None _ , _ emoji = None _ , _ set_name = None _ , _
mask_position = None _ , _ file_size = None _ , _ premium_animation =
None _ , _ custom... | |
TeleBot/custom_filters_0_0.txt | ## custom_filters file #
| |
TeleBot/Types_of_API_7_0.txt | _ class _ telebot.types. BotCommandScopeAllGroupChats ¶
Bases: ` BotCommandScope `
Represents the scope of bot commands, covering all group and supergroup chats.
Telegram Documentation: [
https://core.telegram.org/bots/api#botcommandscopeallgroupchats
](https://core.telegram.org/bots/api#botcommandscopeal... | |
TeleBot/Types_of_API_59_0.txt | _ class _ telebot.types. ForumTopicReopened ¶
Bases: ` JsonDeserializable `
This object represents a service message about a forum topic reopened in the
chat. Currently holds no information.
Telegram documentation: [
https://core.telegram.org/bots/api#forumtopicreopened
](https://core.telegram.org/bots/ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.