Contacts the various API's endpoints
Values inside $content:
*
\param $content the request parameters as array
\return the JSON Telegram's reply
Values inside $content:
*
Parameters | Type | Required | Description |
chat_id | Integer | Yes | Unique identifier for the message recipient — User or GroupChat id |
text | String | Yes | Text of the message to be sent |
parse_mode | String | Optional | Send Markdown, if you want Telegram apps to show bold, italic and inline URLs in your bot's message. For the moment, only Telegram for Android supports this. |
disable_web_page_preview | Boolean | Optional | Disables link previews for links in this message |
reply_to_message_id | Integer | Optional | If the message is a reply, ID of the original message |
reply_markup | ReplyKeyboardMarkup or ReplyKeyboardHide or ForceReply | Optional | Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user. |
public sendMessage ( array $content ) | ||
$content | array |