TDLib
Loading...
Searching...
No Matches
addQuickReplyShortcutInlineQueryResultMessage Class Referencefinal

Inherits Function.

Description

Adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message.

Returns object_ptr<QuickReplyMessage>.

Public Types

using ReturnType = object_ptr<quickReplyMessage>
 Typedef for the type returned by the function.

Public Member Functions

 addQuickReplyShortcutInlineQueryResultMessage ()
 addQuickReplyShortcutInlineQueryResultMessage (string const &shortcut_name_, int53 reply_to_message_id_, int64 query_id_, string const &result_id_, bool hide_via_bot_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

bool hide_via_bot_
 Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username").
int64 query_id_
 Identifier of the inline query.
int53 reply_to_message_id_
 Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none.
string result_id_
 Identifier of the inline query result.
string shortcut_name_
 Name of the target shortcut.

Static Public Attributes

static const std::int32_t ID = -2017449468
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ addQuickReplyShortcutInlineQueryResultMessage() [1/2]

addQuickReplyShortcutInlineQueryResultMessage ( )

Default constructor for a function, which adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message.

Returns object_ptr<QuickReplyMessage>.

◆ addQuickReplyShortcutInlineQueryResultMessage() [2/2]

addQuickReplyShortcutInlineQueryResultMessage ( string const & shortcut_name_,
int53 reply_to_message_id_,
int64 query_id_,
string const & result_id_,
bool hide_via_bot_ )

Creates a function, which adds a message to a quick reply shortcut via inline bot. If shortcut doesn't exist and there are less than getOption("quick_reply_shortcut_count_max") shortcuts, then a new shortcut is created. The shortcut must not contain more than getOption("quick_reply_shortcut_message_count_max") messages after adding the new message. Returns the added message.

Returns object_ptr<QuickReplyMessage>.

Parameters
[in]shortcut_name_Name of the target shortcut.
[in]reply_to_message_id_Identifier of a quick reply message in the same shortcut to be replied; pass 0 if none.
[in]query_id_Identifier of the inline query.
[in]result_id_Identifier of the inline query result.
[in]hide_via_bot_Pass true to hide the bot, via which the message is sent. Can be used only for bots getOption("animation_search_bot_username"), getOption("photo_search_bot_username"), and getOption("venue_search_bot_username").

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: