2018-04-01 13:19:25 +02:00
|
|
|
---
|
|
|
|
title: sendMessage
|
|
|
|
description: Sends a message. Returns sent message
|
2018-04-04 19:52:48 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
2018-04-01 13:19:25 +02:00
|
|
|
---
|
2018-04-05 01:19:57 +02:00
|
|
|
# Method: sendMessage
|
2018-04-01 13:19:25 +02:00
|
|
|
[Back to methods index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
|
|
|
|
|
|
|
|
|
|
|
|
Sends a message. Returns sent message
|
|
|
|
|
|
|
|
### Parameters:
|
|
|
|
|
2018-08-29 11:18:25 +02:00
|
|
|
| Name | Type | Description | Required |
|
|
|
|
|----------|---------------|-------------|----------|
|
|
|
|
|chat\_id|[int53](../types/int53.md) | Chat to send message | Yes|
|
|
|
|
|reply\_to\_message\_id|[int53](../types/int53.md) | Identifier of a message to reply to or 0 | Yes|
|
|
|
|
|disable\_notification|[Bool](../types/Bool.md) | Pass true, to disable notification about the message, doesn't works in secret chats | Yes|
|
|
|
|
|from\_background|[Bool](../types/Bool.md) | Pass true, if the message is sent from background | Yes|
|
|
|
|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Bots only. Markup for replying to message | Yes|
|
|
|
|
|input\_message\_content|[InputMessageContent](../types/InputMessageContent.md) | Content of a message to send | Yes|
|
2018-04-01 13:19:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Return type: [Message](../types/Message.md)
|
|
|
|
|