1
0
mirror of https://github.com/danog/telerpc.git synced 2024-11-29 20:29:08 +01:00
telerpc/bk.sql

123 lines
124 KiB
MySQL
Raw Normal View History

2022-02-23 13:52:32 +01:00
-- MariaDB dump 10.19 Distrib 10.5.12-MariaDB, for debian-linux-gnu (aarch64)
2020-07-25 20:01:48 +02:00
--
-- Host: localhost Database: rpc
-- ------------------------------------------------------
2022-02-23 13:52:32 +01:00
-- Server version 10.5.12-MariaDB-0+deb11u1
2020-07-25 20:01:48 +02:00
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `bot_method_invalid`
--
DROP TABLE IF EXISTS `bot_method_invalid`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bot_method_invalid` (
`method` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`method`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bot_method_invalid`
--
LOCK TABLES `bot_method_invalid` WRITE;
/*!40000 ALTER TABLE `bot_method_invalid` DISABLE KEYS */;
2022-02-23 11:45:18 +01:00
INSERT INTO `bot_method_invalid` VALUES ('account.acceptAuthorization'),('account.cancelPasswordEmail'),('account.changePhone'),('account.checkUsername'),('account.confirmPasswordEmail'),('account.confirmPhone'),('account.createTheme'),('account.declinePasswordReset'),('account.deleteAccount'),('account.deleteSecureValue'),('account.finishTakeoutSession'),('account.getAccountTTL'),('account.getAllSecureValues'),('account.getAuthorizationForm'),('account.getAuthorizations'),('account.getAutoDownloadSettings'),('account.getChatThemes'),('account.getContactSignUpNotification'),('account.getContentSettings'),('account.getGlobalPrivacySettings'),('account.getMultiWallPapers'),('account.getNotifyExceptions'),('account.getNotifySettings'),('account.getPassword'),('account.getPasswordSettings'),('account.getPrivacy'),('account.getSecureValue'),('account.getTheme'),('account.getThemes'),('account.getTmpPassword'),('account.getWallPaper'),('account.getWallPapers'),('account.getWebAuthorizations'),('account.initTakeoutSession'),('account.installTheme'),('account.installWallPaper'),('account.registerDevice'),('account.reportPeer'),('account.reportProfilePhoto'),('account.resendPasswordEmail'),('account.resetAuthorization'),('account.resetNotifySettings'),('account.resetPassword'),('account.resetWallPapers'),('account.resetWebAuthorization'),('account.resetWebAuthorizations'),('account.saveAutoDownloadSettings'),('account.saveSecureValue'),('account.saveTheme'),('account.saveWallPaper'),('account.sendChangePhoneCode'),('account.sendConfirmPhoneCode'),('account.sendVerifyEmailCode'),('account.sendVerifyPhoneCode'),('account.setAccountTTL'),('account.setContactSignUpNotification'),('account.setContentSettings'),('account.setGlobalPrivacySettings'),('account.setPrivacy'),('account.unregisterDevice'),('account.updateDeviceLocked'),('account.updateNotifySettings'),('account.updatePasswordSettings'),('account.updateProfile'),('account.updateStatus'),('account.updateTheme'),('account.updateUsername'),('account.uploadTheme'),('account.uploadWallPaper'),('account.verifyEmail'),('account.verifyPhone'),('auth.acceptLoginToken'),('auth.cancelCode'),('auth.checkPassword'),('auth.checkRecoveryPassword'),('auth.exportLoginToken'),('auth.importLoginToken'),('auth.recoverPassword'),('auth.requestPasswordRecovery'),('auth.resendCode'),('auth.resetAuthorizations'),('auth.sendCode'),('auth.signIn'),('auth.signUp'),('channels.checkUsername'),('channels.convertToGigagroup'),('channels.createChannel'),('channels.deleteChannel'),('channels.deleteHistory'),('channels.deleteUserHistory'),('channels.editCreator'),('channels.editLocation'),('channels.exportMessageLink'),('channels.getAdminedPublicChannels'),('channels.getAdminLog'),('channels.getGroupsForDiscussion'),('channels.getInactiveChannels'),('channels.getLeftChannels'),('channels.getSponsoredMessages'),('channels.inviteToChannel'),('channels.joinChannel'),('channels.readHistory'),('channels.readMessageContents'),('channels.reportSpam'),('channels.setDiscussionGroup'),('channels.togglePreHistoryHidden'),('channels.toggleSignatures'),('channels.toggleSlowMode'),('channels.updateUsername'),('channels.viewSponsoredMessage'),('contacts.acceptContact'),('contacts.addContact'),('contacts.block'),('contacts.blockFromReplies'),('contacts.deleteByPhones'),('contacts.deleteContacts'),('contacts.getBlocked'),('contacts.getContactIDs'),('contacts.getContacts'),('contacts.getLocated'),('contacts.getSaved'),('contacts.getStatuses'),('contacts.getTopPeers'),('contacts.importContacts'),('contacts.resetSaved'),('contacts.resetTopPeerRating'),('contacts.search'),('contacts.toggleTopPeers'),('contacts.unblock'),('folders.deleteFolder'),('folders.editPeerFolders'),('help.acceptTermsOfService'),('help.dismissSuggestion'),('help.editUserInfo'),('help.getAppChangelog'),('help.getAppConfig'),('help.getAppUpdate'),('help.getCountriesList'),('help.getDeepLinkInfo'),('help.getInviteText'),('help.getNearestDc'),('help.getPassportConfig'),('help.getPromoData'),('help.getProxyData'),('help.getRecentMeUrls'),('help.getSupport'),('he
2020-07-25 20:01:48 +02:00
/*!40000 ALTER TABLE `bot_method_invalid` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `code_errors`
--
DROP TABLE IF EXISTS `code_errors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `code_errors` (
`code` int(11) NOT NULL,
PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `code_errors`
--
LOCK TABLES `code_errors` WRITE;
/*!40000 ALTER TABLE `code_errors` DISABLE KEYS */;
2022-02-23 11:45:18 +01:00
INSERT INTO `code_errors` VALUES (-429),(-404),(404),(500);
2020-07-25 20:01:48 +02:00
/*!40000 ALTER TABLE `code_errors` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `error_descriptions`
--
DROP TABLE IF EXISTS `error_descriptions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `error_descriptions` (
`error` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
2022-02-23 19:06:06 +01:00
`description` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
2020-07-25 20:01:48 +02:00
PRIMARY KEY (`error`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `error_descriptions`
--
LOCK TABLES `error_descriptions` WRITE;
/*!40000 ALTER TABLE `error_descriptions` DISABLE KEYS */;
2022-02-23 19:06:06 +01:00
INSERT INTO `error_descriptions` VALUES ('2FA_CONFIRM_WAIT_%d','Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you\'ll be able to reset your account in %d seconds.'),('ABOUT_TOO_LONG','About string too long'),('ACCESS_TOKEN_EXPIRED','Access token expired'),('ACCESS_TOKEN_INVALID','Access token invalid'),('ADMIN_ID_INVALID','The specified admin ID is invalid'),('ADMIN_RANK_EMOJI_NOT_ALLOWED','An admin rank cannot contain emojis'),('ADMIN_RANK_INVALID','The specified admin rank is invalid.'),('ADMINS_TOO_MUCH','There are too many admins'),('ALBUM_PHOTOS_TOO_MANY',''),('All workers are busy. Active_queries = X','All workers are busy. Active_queries = X'),('API_CALL_ERROR','API call error'),('API_ID_INVALID','API ID invalid'),('API_ID_PUBLISHED_FLOOD','This API id was published somewhere, you can\'t use it now'),('ARR_CAS_FAILED','Internal error'),('ARTICLE_TITLE_EMPTY','The title of the article is empty'),('AUDIO_CONTENT_URL_EMPTY','The remote URL specified in the content field is empty'),('AUDIO_TITLE_EMPTY','An empty audio title was provided.'),('AUTH_BYTES_INVALID','The provided authorization is invalid'),('AUTH_KEY_PERM_EMPTY','The temporary auth key must be binded to the permanent auth key to use these methods.'),('AUTH_RESTART','Restart the authorization process'),('AUTH_TOKEN_ALREADY_ACCEPTED','The specified auth token was already accepted'),('AUTH_TOKEN_EXPIRED','The authorization token has expired'),('AUTH_TOKEN_INVALID','The specified auth token is invalid'),('AUTH_TOKEN_INVALIDX','The specified auth token is invalid'),('AUTOARCHIVE_NOT_AVAILABLE','The autoarchive setting is not available at this time: please check the value of the [autoarchive_setting_available field in client config »](https://core.telegram.org/api/config#client-configuration) before calling this method.'),('BANK_CARD_NUMBER_INVALID','The specified card number is invalid'),('BANNED_RIGHTS_INVALID','You provided some invalid flags in the banned rights'),('BOT_CHANNELS_NA','Bots can\'t edit admin privileges'),('BOT_COMMAND_DESCRIPTION_INVALID','The specified command description is invalid'),('BOT_COMMAND_INVALID','The specified command is invalid'),('BOT_DOMAIN_INVALID','Bot domain invalid'),('BOT_GROUPS_BLOCKED','This bot can\'t be added to groups'),('BOT_INLINE_DISABLED','This bot can\'t be used in inline mode'),('BOT_INVALID','This is not a valid bot'),('BOT_MISSING','This method can only be run by a bot'),('BOT_ONESIDE_NOT_AVAIL','Bots can\'t pin messages in PM just for themselves'),('BOT_PAYMENTS_DISABLED','Please enable bot payments in botfather before calling this method.'),('BOT_POLLS_DISABLED',''),('BOT_RESPONSE_TIMEOUT','A timeout occurred while fetching data from the bot'),('BOT_SCORE_NOT_MODIFIED','The score wasn\'t modified'),('BOTS_TOO_MUCH','There are too many bots in this chat/channel'),('BROADCAST_FORBIDDEN','Participants of polls in channels should stay anonymous.'),('BROADCAST_ID_INVALID','Broadcast ID invalid'),('BROADCAST_PUBLIC_VOTERS_FORBIDDEN','You can\'t forward polls with public voters'),('BROADCAST_REQUIRED','This method can only be called on a channel, please use stats.getMegagroupStats for supergroups'),('BUTTON_DATA_INVALID','The data of one or more of the buttons you provided is invalid'),('BUTTON_TYPE_INVALID','The type of one or more of the buttons you provided is invalid'),('BUTTON_URL_INVALID','Button URL invalid'),('CALL_ALREADY_ACCEPTED','The call was already accepted'),('CALL_ALREADY_DECLINED','The call was already declined'),('CALL_OCCUPY_FAILED','The call failed because the user is already making another call'),('CALL_PEER_INVALID','The provided call peer object is invalid'),('CALL_PROTOCOL_FLAGS_INVALID','Call protocol flags invalid'),('CDN_METHOD_INVALID','You can\'t call this method in a CDN DC'),('CHANNEL_ADD_INVALID','Internal error'),('CHANNEL_ADMINS_INVALID','Internal error'),('CHANNEL_INVALID','The provided channel is invalid'),('CHANNEL_PRIVATE','You haven\'t joined this channel/supergro
2020-07-25 20:01:48 +02:00
/*!40000 ALTER TABLE `error_descriptions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `errors`
--
DROP TABLE IF EXISTS `errors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `errors` (
`error` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`method` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`error`,`method`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `errors`
--
LOCK TABLES `errors` WRITE;
/*!40000 ALTER TABLE `errors` DISABLE KEYS */;
2022-02-23 19:06:06 +01:00
INSERT INTO `errors` VALUES ('2FA_CONFIRM_WAIT_%d','account.deleteAccount',420),('ABOUT_TOO_LONG','account.updateProfile',400),('ACCESS_TOKEN_EXPIRED','auth.importBotAuthorization',400),('ACCESS_TOKEN_INVALID','auth.importBotAuthorization',400),('ADMIN_ID_INVALID','messages.getExportedChatInvites',400),('ADMIN_RANK_EMOJI_NOT_ALLOWED','channels.editAdmin',400),('ADMIN_RANK_INVALID','channels.editAdmin',400),('ADMINS_TOO_MUCH','channels.editAdmin',400),('ALBUM_PHOTOS_TOO_MANY','photos.updateProfilePhoto',400),('ALBUM_PHOTOS_TOO_MANY','photos.uploadProfilePhoto',400),('All workers are busy. Active_queries = X','account.updateProfile',-3002),('All workers are busy. Active_queries = X','account.updateStatus',-3002),('All workers are busy. Active_queries = X','channels.getChannels',-3002),('All workers are busy. Active_queries = X','channels.getFullChannel',-3002),('All workers are busy. Active_queries = X','channels.getParticipant',-3002),('All workers are busy. Active_queries = X','channels.joinChannel',-3002),('All workers are busy. Active_queries = X','channels.leaveChannel',-3002),('All workers are busy. Active_queries = X','contacts.resolveUsername',-3002),('All workers are busy. Active_queries = X','help.getCdnConfig',-3002),('All workers are busy. Active_queries = X','help.getConfig',-3002),('All workers are busy. Active_queries = X','help.getTermsOfServiceUpdate',-3002),('All workers are busy. Active_queries = X','messages.checkChatInvite',-3002),('All workers are busy. Active_queries = X','messages.deleteHistory',-3002),('All workers are busy. Active_queries = X','messages.forwardMessages',-3002),('All workers are busy. Active_queries = X','messages.getAllChats',-3002),('All workers are busy. Active_queries = X','messages.getBotCallbackAnswer',-3002),('All workers are busy. Active_queries = X','messages.getDialogs',-3002),('All workers are busy. Active_queries = X','messages.getHistory',-3002),('All workers are busy. Active_queries = X','messages.getMessagesViews',-3002),('All workers are busy. Active_queries = X','messages.getUnreadMentions',-3002),('All workers are busy. Active_queries = X','messages.importChatInvite',-3002),('All workers are busy. Active_queries = X','messages.readMentions',-3002),('All workers are busy. Active_queries = X','messages.sendMessage',-3002),('All workers are busy. Active_queries = X','updates.getChannelDifference',-3002),('All workers are busy. Active_queries = X','updates.getDifference',-3002),('All workers are busy. Active_queries = X','upload.getFile',-3002),('All workers are busy. Active_queries = X','upload.saveFilePart',-3002),('All workers are busy. Active_queries = X','users.getUsers',-3002),('API_CALL_ERROR','upload.getCdnFileHashes',500),('API_CALL_ERROR','upload.reuploadCdnFile',500),('API_ID_INVALID','auth.exportLoginToken',400),('API_ID_INVALID','auth.importBotAuthorization',400),('API_ID_INVALID','auth.sendCode',400),('API_ID_PUBLISHED_FLOOD','auth.importBotAuthorization',400),('API_ID_PUBLISHED_FLOOD','auth.sendCode',400),('ARR_CAS_FAILED','channels.joinChannel',500),('ARTICLE_TITLE_EMPTY','messages.setInlineBotResults',400),('AUDIO_CONTENT_URL_EMPTY','messages.setInlineBotResults',400),('AUDIO_TITLE_EMPTY','messages.setInlineBotResults',400),('AUTH_BYTES_INVALID','auth.importAuthorization',400),('AUTH_BYTES_INVALID','invokeWithLayer',400),('AUTH_KEY_PERM_EMPTY','account.updateUsername',401),('AUTH_KEY_PERM_EMPTY','auth.checkPhone',401),('AUTH_KEY_PERM_EMPTY','auth.sendCode',401),('AUTH_KEY_PERM_EMPTY','contacts.resolveUsername',401),('AUTH_KEY_PERM_EMPTY','help.getCdnConfig',401),('AUTH_KEY_PERM_EMPTY','messages.getHistory',401),('AUTH_KEY_PERM_EMPTY','messages.sendMessage',401),('AUTH_KEY_PERM_EMPTY','updates.getDifference',401),('AUTH_KEY_PERM_EMPTY','upload.getFile',401),('AUTH_KEY_PERM_EMPTY','users.getUsers',401),('AUTH_RESTART','auth.sendCode',500),('AUTH_TOKEN_ALREADY_ACCEPTED','auth.importLoginToken',400),('AUTH_TOKEN_EXPIRED','auth.acceptLoginToken',400),('AUTH_TOKEN_EXPIRED','auth.importLoginToken',400),('AUTH_TOKEN_INVALID','auth.importLoginToken',400),('AU
2020-07-25 20:01:48 +02:00
/*!40000 ALTER TABLE `errors` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
2022-02-23 19:06:06 +01:00
-- Dump completed on 2022-02-23 19:05:53