telegram api method · layer 229 · #7fd736b2
stories.sendReaction
React to a story.
definition
stories.sendReaction#7fd736b2 flags:# add_to_recent:flags.0?true peer:InputPeer story_id:int reaction:Reaction = Updates;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
add_to_recent | true | Whether to add this reaction to the recent reactions list ». |
peer | InputPeer | The peer that sent the story |
story_id | int | ID of the story to react to |
reaction | Reaction | Reaction |
returns
errors (7)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | REACTION_INVALID | The specified reaction is invalid. |
| 400 | STORIES_NEVER_CREATED | This peer hasn't ever posted any stories. |
| 400 | STORY_ID_EMPTY | You specified no story IDs. |
| 400 | STORY_ID_INVALID | The specified story ID is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 161–229 · constructor id changed 1×
| id | layers |
|---|---|
| #49aaa9b3 | 161–163 |
| #7fd736b2 | 164–229 |