@@ -1197,6 +1197,11 @@ components:
11971197 nullable : true
11981198 readOnly : false
11991199 type : integer
1200+ chat_message_id :
1201+ description : Identifier of message that contains `chat` button initialized chat
1202+ nullable : true
1203+ readOnly : false
1204+ type : string
12001205 required :
12011206 - chat_id
12021207 - type
@@ -1749,6 +1754,7 @@ components:
17491754 link : ' #/components/schemas/LinkButton'
17501755 request_geo_location : ' #/components/schemas/RequestGeoLocationButton'
17511756 request_contact : ' #/components/schemas/RequestContactButton'
1757+ chat : ' #/components/schemas/ChatButton'
17521758 required :
17531759 - type
17541760 - text
@@ -1794,6 +1800,41 @@ components:
17941800 readOnly : false
17951801 type : boolean
17961802 default : false
1803+ ChatButton :
1804+ description : |-
1805+ Button that creates new chat as soon as the first user clicked on it.
1806+ Bot will be added to chat participants as administrator.
1807+ Message author will be owner of the chat.
1808+ allOf :
1809+ - $ref : ' #/components/schemas/Button'
1810+ - properties :
1811+ chat_title :
1812+ description : ' Title of chat to be created'
1813+ readOnly : false
1814+ nullable : true
1815+ type : string
1816+ maxLength : 200
1817+ chat_description :
1818+ description : ' Chat description'
1819+ readOnly : false
1820+ nullable : true
1821+ type : string
1822+ maxLength : 400
1823+ start_payload :
1824+ description : ' Start payload will be sent to bot as soon as chat created'
1825+ readOnly : false
1826+ nullable : true
1827+ type : string
1828+ maxLength : 512
1829+ uuid :
1830+ description : |-
1831+ Unique button identifier across all chat buttons in keyboard.
1832+ If `uuid` changed, new chat will be created on the next click.
1833+ Server will generate it at the time when button initially posted.
1834+ Reuse it when you edit the message.'
1835+ readOnly : false
1836+ nullable : true
1837+ type : integer
17971838 Intent :
17981839 description : Intent of button
17991840 type : string
@@ -2159,6 +2200,7 @@ components:
21592200 user_removed : ' #/components/schemas/UserRemovedFromChatUpdate'
21602201 bot_started : ' #/components/schemas/BotStartedUpdate'
21612202 chat_title_changed : ' #/components/schemas/ChatTitleChangedUpdate'
2203+ message_chat_created : ' #/components/schemas/MessageChatCreatedUpdate'
21622204 properties :
21632205 update_type :
21642206 type : string
@@ -2329,3 +2371,22 @@ components:
23292371 - chat_id
23302372 - user
23312373 - title
2374+ MessageChatCreatedUpdate :
2375+ description : Bot will get this update when chat has been created as soon as first user clicked chat button
2376+ allOf :
2377+ - $ref : ' #/components/schemas/Update'
2378+ - properties :
2379+ chat :
2380+ description : Created chat
2381+ $ref : ' #/components/schemas/Chat'
2382+ message_id :
2383+ description : Message identifier where the button has been clicked
2384+ type : string
2385+ start_payload :
2386+ description : Payload from chat button
2387+ type : string
2388+ nullable : true
2389+ readOnly : false
2390+ required :
2391+ - message_id
2392+ - chat
0 commit comments