SendBotStartMessage
public struct SendBotStartMessage : Codable, Equatable, TDFunction
Invites a bot to a chat (if it is not yet a member) and sends it the /start command. Bots can’t be invited to a private chat other than the chat with the bot. Bots can’t be invited to channels (although they can be added as admins) and secret chats. Returns the sent message
-
Undocumented
Declaration
Swift
public typealias Result = Message
-
Identifier of the bot
Declaration
Swift
public let botUserId: Int32
-
Identifier of the target chat
Declaration
Swift
public let chatId: Int53
-
A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking)
Declaration
Swift
public let parameter: String
-
Invites a bot to a chat (if it is not yet a member) and sends it the /start command. Bots can’t be invited to a private chat other than the chat with the bot. Bots can’t be invited to channels (although they can be added as admins) and secret chats. Returns the sent message
Declaration
Swift
public init(botUserId: Int32, chatId: Int53, parameter: String)
Parameters
botUserId
Identifier of the bot
chatId
Identifier of the target chat