Skip to content

Commit de34a02

Browse files
authored
Add some errors to known errors
KurimuzonAkuma/kurigram@6ba824a
1 parent ae77b88 commit de34a02

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

compiler/errors/source/400_BAD_REQUEST.tsv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ BOT_WEBVIEW_DISABLED A webview cannot be opened in the specified conditions: emi
5858
BROADCAST_ID_INVALID Broadcast ID invalid.
5959
BROADCAST_PUBLIC_VOTERS_FORBIDDEN You can't forward polls with public voters.
6060
BROADCAST_REQUIRED This method can only be called on a channel, please use stats.getMegagroupStats for supergroups.
61+
BUSINESS_CONNECTION_INVALID The business connection is invalid.
62+
BUSINESS_CONNECTION_NOT_ALLOWED This business connection is not allowed.
6163
BUSINESS_PEER_INVALID Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business#connected-bots).
6264
BUSINESS_PEER_USAGE_MISSING You cannot send a message to a user through a [business connection](https://core.telegram.org/api/business#connected-bots) if the user hasn't recently contacted us.
6365
BUSINESS_RECIPIENTS_EMPTY You didn't set any flag in inputBusinessBotRecipients, thus the bot cannot work with *any* peer.

compiler/errors/source/403_FORBIDDEN.tsv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
id message
22
ALLOW_PAYMENT_REQUIRED_X The user has enabled paid messages with {value} stars.
33
ANONYMOUS_REACTIONS_DISABLED Sorry, anonymous administrators cannot leave reactions or participate in polls.
4+
BOT_ACCESS_FORBIDDEN You cannot access this bot.
45
BOT_OWNER_REQUIRED You must be the owner of the bot to perform this action
56
BROADCAST_FORBIDDEN Channel poll voters and reactions cannot be fetched to prevent deanonymization.
67
CHANNEL_PUBLIC_GROUP_NA channel/supergroup not available.

0 commit comments

Comments
 (0)