File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ editMessageCaption
7070editMessageReplyMarkup
7171kickChatMember
7272unbanChatMember
73+ exportChatInviteLink
7374leaveChat
7475getChat
7576getChatAdministrators
Original file line number Diff line number Diff line change @@ -1575,6 +1575,34 @@ var TelegramApi = function (params)
15751575 } ) . nodeify ( cb ) ;
15761576 } ;
15771577
1578+ /**
1579+ * METHOD: exportChatInviteLink
1580+ * PARAMS:
1581+ * chat_id Unique identifier for the target chat or username of the target channel — User or GroupChat id
1582+ */
1583+ this . exportChatInviteLink = function ( params , cb ) {
1584+ var args = { } ;
1585+
1586+ if ( params . chat_id !== undefined ) args . chat_id = params . chat_id ;
1587+
1588+ return new Promise ( function ( resolve , reject ) {
1589+ _rest ( {
1590+ method : 'POST' ,
1591+ json : true ,
1592+ formData : args ,
1593+ uri : _baseurl + 'exportChatInviteLink'
1594+ } )
1595+ . then ( function ( body ) {
1596+ return commonResponseHandler ( body ) ;
1597+ } )
1598+ . then ( function ( data ) {
1599+ resolve ( data ) ;
1600+ } )
1601+ . catch ( function ( err ) {
1602+ reject ( err ) ;
1603+ } ) ;
1604+ } ) . nodeify ( cb ) ;
1605+ } ;
15781606
15791607 /**
15801608 * METHOD: deleteMessage
You can’t perform that action at this time.
0 commit comments