Bot.sendMessage(text)
Bot.sendMessage("Hello from bot")
Bot.sendMessageToChatWithId(chatid, text)
Bot.sendMessageToChatWithId("45445454521", "Hello users!")
Bot.sendMessageToChat(chat_name, text)
sendMessageToChat("OtherTestChat", "Hello to all!")
Bot.sendMessageToChatWithId
is more preferable than the function Bot.sendMessageToChat
.Bot.editMessage("new text", 20)
Bot.editMessageInChat(10512154, "new text", 25)
request.message_id
onMessageSending
:sendMessageXXX
, sendKeyboard
, editMesage
, editMessageInChat
andsendInlineKeyboard
functions:Markdown
or HTML
, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. Default Markdown
. Can be Markdown
, HTML
or null
​