TelegramBot.sendMessage

Send text message

  1. Message sendMessage(T chat_id, string text)
  2. Message sendMessage(T chat_id, int reply_to, string text)
    struct TelegramBot
    @trusted
    sendMessage
    (
    T
    )
    (,,
    string text
    )
  3. Message sendMessage(SendMessageMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

reply_to int

If the message is a reply, ID of the original message

text string

Text to be sent

Return Value

Type: Message

Sent Message

Throws

TelegramBotException on errors

See Also

Meta