You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,28 @@
3
3
All notable changes to this project will be documented in this file.
4
4
This project adheres to [Semantic Versioning](http://semver.org/).
5
5
6
+
## [0.57.0][0.57.0] - 2022-04-23
7
+
8
+
Added:
9
+
10
+
1. Support Bot API v6: (@danielperez9430)
11
+
12
+
* Add method *setChatMenuButton()*
13
+
* Add method *getChatMenuButton()*
14
+
* Add method *setMyDefaultAdministratorRights()*
15
+
* Add method *getMyDefaultAdministratorRights()*
16
+
* Add method *answerWebAppQuery()*
17
+
* Renamed the fields voice_chat_scheduled, voice_chat_started, voice_chat_ended, and voice_chat_participants_invited to video_chat_scheduled, video_chat_started, video_chat_ended, and video_chat_participants_invited
Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated.
997
+
On success, a SentWebAppMessage object is returned.
998
+
999
+
**Kind**: instance method of [<code>TelegramBot</code>](#TelegramBot)
Copy file name to clipboardExpand all lines: src/telegram.js
+71-7Lines changed: 71 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -48,13 +48,14 @@ const _messageTypes = [
48
48
'video',
49
49
'video_note',
50
50
'voice',
51
-
'voice_chat_started',
52
-
'voice_chat_ended',
53
-
'voice_chat_participants_invited',
54
-
'voice_chat_scheduled',
51
+
'video_chat_started',
52
+
'video_chat_ended',
53
+
'video_chat_participants_invited',
54
+
'video_chat_scheduled',
55
55
'message_auto_delete_timer_changed',
56
56
'chat_invite_link',
57
-
'chat_member_updated'
57
+
'chat_member_updated',
58
+
'web_app_data',
58
59
];
59
60
const_deprecatedMessageTypes=[
60
61
'new_chat_participant','left_chat_participant'
@@ -1469,8 +1470,25 @@ class TelegramBot extends EventEmitter {
1469
1470
}
1470
1471
1471
1472
/**
1472
-
* Returns True on success.
1473
+
* Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated.
1474
+
* On success, a SentWebAppMessage object is returned.
1475
+
*
1476
+
* @param {String} webAppQueryId Unique identifier for the query to be answered
1477
+
* @param {InlineQueryResult} result object that represents one result of an inline query
0 commit comments