ephemeral.sendMessage#ba8d5f35 flags:# invert_media:flags.6?true welcome:flags.7?true anchor:flags.9?true noforwards:flags.10?true peer:flags.8?InputPeer receiver_id:InputUser query_id:flags.0?long message:string entities:flags.1?Vector<MessageEntity> media:flags.2?InputMedia reply_markup:flags.3?ReplyMarkup rich_message:flags.4?InputRichMessage random_id:long reply_to:flags.5?InputReplyTo = Updates;
Parameters
| Name | Type | Description |
| flags |
# |
Bit mask: a field written flags.N?T is present only when bit N is set. |
| invert_media |
flags.6?true |
Show the attachment below the text rather than above it. |
| welcome |
flags.7?true |
|
| anchor |
flags.9?true |
|
| noforwards |
flags.10?true |
|
| peer |
flags.8?InputPeer |
The user or chat the request is about. |
| receiver_id |
InputUser |
|
| query_id |
flags.0?long |
Query identifier — return it with the answer. |
| message |
string |
Message text. |
| entities |
flags.1?Vector<MessageEntity> |
Text markup — bold, links, mentions and so on, as a list of ranges. |
| media |
flags.2?InputMedia |
Attachment. |
| reply_markup |
flags.3?ReplyMarkup |
Keyboard shown under the message. |
| rich_message |
flags.4?InputRichMessage |
|
| random_id |
long |
A random number from the client. The server uses it to discard duplicates when a request goes out twice. |
| reply_to |
flags.5?InputReplyTo |
What the message replies to. |
Result
Updates
Possible errors
This method has no errors of its own: it either answers or fails on the shared checks below.
Common to every call
| Code | Type | What it means |
| 401 |
AUTH_KEY_UNREGISTERED |
The server does not know this session: the key was revoked, expired, or the call was made before authorisation. |
| 401 |
API_ID_INVALID |
This api_id was never issued or has been blocked. Keys come from my.ansible.su. |
| 400 |
CONNECTION_LAYER_INVALID |
The client did not declare a layer, or declared one the server does not know. |
| 420 |
FLOOD_WAIT_X |
Too often. Do not retry for X seconds — the number arrives in the error text. |
| 500 |
INTERNAL |
A failure on our side. The request may be retried; if it keeps failing, it is a bug of ours. |
Related pages
Types used here