Inherits Function.
Checks whether the current user can post a story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats.
Returns object_ptr<CanPostStoryResult>.
Public Fields | |
| int53 | chat_id_ |
| Chat identifier. Pass Saved Messages chat identifier when posting a story on behalf of the current user. | |
Public Types | |
| using | ReturnType = object_ptr< CanPostStoryResult > |
| Typedef for the type returned by the function. | |
Public Instance Methods | |
| canPostStory () | |
| canPostStory (int53 chat_id_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
| virtual void | store (TlStorerUnsafe &s) const |
| virtual void | store (TlStorerCalcLength &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Static Public Attributes | |
| static const std::int32_t | ID = 668621518 |
| Identifier uniquely determining a type of the object. | |
| canPostStory | ( | ) |
Default constructor for a function, which checks whether the current user can post a story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats.
Returns object_ptr<CanPostStoryResult>.
|
explicit |
Creates a function, which checks whether the current user can post a story on behalf of a chat; requires can_post_stories administrator right for supergroup and channel chats.
Returns object_ptr<CanPostStoryResult>.
| [in] | chat_id_ | Chat identifier. Pass Saved Messages chat identifier when posting a story on behalf of the current user. |
|
finalvirtual |