API sendMessage method

This method sends a message, with an easy-to-use keyboard parameter to send normal keyboards, inline keyboards or hide an inline keyboard.

Parameter Description Required
chatID The chatID to send the message. true
text The message to send true
keyboard An inline or normal keyboard to send or the hide string to hide a normal keyboard false
keyboard type Can be inline, hide or anything else for a normal keyboard. Default is inline. false
disable notification Disable notification for this message? Default is false false
parse mode Message parse mode. Default is HTML false
disable webpage preview Default is true false
reply to message The message ID to reply to false

You can have an example for this method here.

Back to the methods list