goboter/proto/telegram_calls.proto
2020-10-28 11:24:24 +01:00

19 lines
840 B
Protocol Buffer

syntax = "proto3";
package telegram;
import "telegram.proto";
import "telegram_response.proto";
message SendMessageParams {
enum ParseMode {
Markdown = 0;
HTML = 1;
}
int64 chat_id = 1; // Unique identifier for the target chat or username of the target channel (in the format @channelusername)
string text = 2 ; // Text of the message to be sent
ParseMode parse_mode = 3; // Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
bool disable_web_page_preview = 4; // Disables link previews for links in this message
bool disable_notification = 5; // Sends the message silently. Users will receive a notification with no sound.
int64 reply_to_message_id = 6; // If the message is a reply, ID of the original message
}