Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ACGNTaiwan/AutoChangeGroupPhoto
/ functions
Functions
125 in github.com/ACGNTaiwan/AutoChangeGroupPhoto
⨍
Functions
125
◇
Types & classes
24
↓ 12 callers
Method
from
(pds: PhotoDataStructure)
src/photoData.ts:252
↓ 5 callers
Method
get
(target: any, propName: PropertyKey)
src/autoSaver.ts:22
↓ 4 callers
Method
nextPhoto
* To send update action for group photo * @param bot Telegram Bot Instance
src/photoData.ts:223
↓ 4 callers
Method
processPixivUrl
* Convert to Reverse Proxy URL for Pixiv Images * @param config Bot Config * @param oUrl Original Image URL
src/utils.ts:311
↓ 4 callers
Function
toMB
(byte: number)
src/consts.ts:6
↓ 3 callers
Method
addPhoto
* Add Photo to Queue * @param data Array of PhotoDataStructure * @param bot Telegram Bot Instance * @param downloader Telegram Download
src/operations.ts:151
↓ 3 callers
Method
getData
* Get Chat Data Store by Chat ID * @param data array of self * @param chatId Telegram Chat ID aka. Group ID
src/photoData.ts:102
↓ 3 callers
Method
pruneQueue
(fileLink: string)
src/photoData.ts:199
↓ 2 callers
Method
Save
()
src/autoSaver.ts:6
↓ 2 callers
Method
checkCacheFolder
(folder: string)
src/telegramDownload.ts:64
↓ 2 callers
Method
checkGroup
(photoData: PhotoData.PhotoDataStructure)
src/telegramDownload.ts:20
↓ 2 callers
Method
checkQueue
* Check and Add into the Queue * @param bot Telegram Bot Instance * @param msg Message Object
src/utils.ts:177
↓ 2 callers
Method
doAddPhotoByUrl
* Add URL Photo to queue * @param msg Message Object
src/autoChangeGroupPhotoBot.ts:301
↓ 2 callers
Method
getPixivIllustDetail
* Get Pixiv Illust Detail informations * @param pixiv PixivApi instance * @param config Bot Config * @param illustId Pixiv Illust ID
src/utils.ts:324
↓ 2 callers
Method
getRetryQueue
(fileLink: string)
src/photoData.ts:187
↓ 2 callers
Method
parsePhoto
* Try to parse the downloaded Photo, then add into the queue * @param uploadPhoto Upload Photo callback * @param bot Telegram Bot Instance
src/utils.ts:238
↓ 2 callers
Function
print_auth_token_response
(response)
pixiv_auth.py:38
↓ 2 callers
Method
retryToQueuePhoto
* Retry to Queue failed photo change * @param bot Telegram Bot Instance * @param chatData PhotoDataStructure * @param fileLink File ID
src/photoData.ts:136
↓ 2 callers
Method
sendPhotoPromise
( data: PhotoData.PhotoDataStructure[], bot: TelegramBot, downloader: TelegramDownload
src/operations.ts:191
↓ 2 callers
Method
sendQueueResult
* Send Queue Result back to Chat * @param bot Telegram Bot Instance * @param msg Message Object * @param result Queue result string
src/utils.ts:148
↓ 2 callers
Method
sizeLimitationCheck
* Check the content Size for pre-process action * @param config Bot Config * @param url The Request URL which need to check size
src/utils.ts:100
↓ 2 callers
Method
tryGetPhotoFromUrl
* Try to get Image from the URL and try to parse then add * @param msg Message Object * @param ent Message Entity * @param url Requeste
src/autoChangeGroupPhotoBot.ts:245
↓ 1 callers
Function
CACHE_DOWNLOADED
(filename: string, dest: string)
src/consts.ts:41
↓ 1 callers
Function
InitialConfig
(_config: BotConfig, saverHandler: (() => void) | undefined)
src/botConfig.ts:69
↓ 1 callers
Method
_COMMANDS_BAN
* Commands of BAN method * @param msg Message Object
src/commands.ts:98
↓ 1 callers
Method
_COMMANDS_DELETE
* Commands of DELETE method * @param msg Message Object
src/commands.ts:125
↓ 1 callers
Method
_COMMANDS_NEXT_PHOTO
* Commands of NEXT_PHOTO method * @param msg Message Object
src/commands.ts:82
↓ 1 callers
Method
_COMMANDS_QUEUE_STATUS
* Commands of QUEUE_STATUS method * @param msg Message Object
src/commands.ts:138
↓ 1 callers
Method
_COMMANDS_SET_INTERVAL
* Commands of SET_INTERVAL method * @param msg Message Object
src/commands.ts:52
↓ 1 callers
Method
_COMMANDS_SET_PAUSED
* Commands of SET_PAUSED method * @param msg Message Object
src/commands.ts:16
↓ 1 callers
Method
_COMMANDS_SET_RESUMED
* Commands of SET_RESUMED method * @param msg Message Object
src/commands.ts:34
↓ 1 callers
Method
_COMMANDS_UNBAN
* Commands of UNBAN method * @param msg Message Object
src/commands.ts:111
↓ 1 callers
Method
checkCacheRoot
()
src/telegramDownload.ts:56
↓ 1 callers
Method
checkFile
(chatId: number, fileId: string)
src/telegramDownload.ts:79
↓ 1 callers
Method
checkGroupCacheFolder
(chatId: number)
src/telegramDownload.ts:60
↓ 1 callers
Method
doAddSticker
(msg: TelegramBot.Message)
src/autoChangeGroupPhotoBot.ts:221
↓ 1 callers
Method
doCompatibleConvert
* Convert Data from old structure * @param d PhotoDataStructure Data Array
src/photoData.ts:119
↓ 1 callers
Method
doUpdate
* Update the Group Photo Icon
src/autoChangeGroupPhotoBot.ts:182
↓ 1 callers
Method
getInstance
* Singleton of AutoChangeGroupPhotoBot * @param _config Telegram Bot config object
src/autoChangeGroupPhotoBot.ts:41
↓ 1 callers
Method
getInstance
(bot: TelegramBot, _logger: any, defaultStore: string = path.resolve(path.join(".", CONSTS.CACHE_FILE_FOLDER))
src/telegramDownload.ts:16
↓ 1 callers
Method
getMeEvent
* process get me events
src/autoChangeGroupPhotoBot.ts:127
↓ 1 callers
Method
init
()
src/commands.ts:159
↓ 1 callers
Method
init
()
src/operations.ts:220
↓ 1 callers
Method
init
()
src/utils.ts:356
↓ 1 callers
Function
login
()
pixiv_auth.py:54
↓ 1 callers
Function
main
()
pixiv_auth.py:101
↓ 1 callers
Function
oauth_pkce
Proof Key for Code Exchange by OAuth Public Clients (RFC7636).
pixiv_auth.py:29
↓ 1 callers
Method
parseCommand
* Parse Text Command from chat * @param data Array of PhotoDataStructure * @param bot Telegram Bot Instance * @param config Bot Config
src/operations.ts:24
↓ 1 callers
Method
preProcessUrl
* Pre-Process URL for some Open Graph supported sites * @param pixiv PixivApi instance * @param config Bot Config * @param bot Telegram
src/utils.ts:30
↓ 1 callers
Method
randomHistory
* For random output a file id and push the result to last
src/photoData.ts:208
↓ 1 callers
Method
readData
* Read PhotoDataStructure Datas into PhotoDataStore which contains Chat's data stores
src/photoData.ts:70
↓ 1 callers
Function
refresh
(refresh_token)
pixiv_auth.py:86
↓ 1 callers
Method
registerEvent
* Register Bot events and cronjob
src/autoChangeGroupPhotoBot.ts:78
↓ 1 callers
Method
registerPixiv
* Register for Pixiv API instance * @param pixiv PixivApi instance * @param config Bot Config
src/utils.ts:281
↓ 1 callers
Method
saveConfig
* Save Config to file
src/botConfig.ts:30
↓ 1 callers
Method
saveData
* Save PhotoDataStore to data file
src/photoData.ts:92
Function
AskForInputCredentials
()
src/botConfig.ts:37
Function
BANNED_TEXT
(charId: number, fileId: string)
src/consts.ts:14
Function
CACHE_CREATED_FOLDER
(folder: string)
src/consts.ts:40
Function
CACHE_DOWNLOADED_RENAME_ERROR
(filename: string, dest: string, error: Error)
src/consts.ts:42
Function
CACHE_DOWNLOADING
(dest: string)
src/consts.ts:44
Function
CACHE_DOWNLOAD_ERROR
(dest: string, reason: string)
src/consts.ts:45
Function
CACHE_DOWNLOAD_IGNORE
(dest: string)
src/consts.ts:46
Function
CACHE_FOLDER_CHECKED
(folder: string, files: string[])
src/consts.ts:47
Function
CHAT_DISABLED_BY_SYSTEM
(chatId: number, reason: string)
src/consts.ts:48
Function
DELETE_TEXT
(charId: number, fileId: string)
src/consts.ts:16
Function
ENABLED_PIXIV_ACCOUNT
(account: string, refreshToken: string)
src/consts.ts:53
Function
ENABLING_PIXIV_ACCOUNT
(account: string)
src/consts.ts:57
Function
ENABLING_REFRESHED_PIXIV_ACCOUNT
(account: string, refreshToken: string)
src/consts.ts:55
Function
FILE_ADDED_INTO_QUEUE
(fileId: string)
src/consts.ts:59
Function
FILE_ADD_INTO_QUEUE_UNSUPPORTED
(fileName: string)
src/consts.ts:58
Function
FILE_ALREADY_IN_QUEUE
(fileId: string)
src/consts.ts:60
Function
GET_CHAT_ERROR
(chatId: number, reason: any)
src/consts.ts:61
Function
GROUP_PHOTO_PIXIV_CAPTION
(illust: PhotoData.PixivIllustStructure)
src/consts.ts:63
Function
IMAGE_FROM_URL_DIMENSION
(mime: string, w: number, h: number)
src/consts.ts:69
Function
NOT_SUPPORT_FOR_HENTAI
(url: string)
src/consts.ts:73
Function
NOT_SUPPORT_FOR_HENTAI_MSG
(url: string)
src/consts.ts:74
Function
NOW_INTERVAL
(interval: string)
src/consts.ts:75
Function
PAUSE_RESUME_LOG_MESSAGE
(chat: TelegramBot.Chat, chatData: PhotoData.PhotoDataStructure)
src/consts.ts:78
Function
PAUSE_RESUME_MESSAGE
(chat: TelegramBot.Chat, chatData: PhotoData.PhotoDataStructure)
src/consts.ts:76
Function
PHOTO_RETRY_DELETE_FROM_QUEUE
(charId: number, fileId: string)
src/consts.ts:83
Function
PHOTO_RETRY_DELETE_MESSAGE
(fileId: string)
src/consts.ts:82
Function
PHOTO_RETRY_REQUEUE
(charId: number, fileId: string)
src/consts.ts:85
Function
PIXIV_ILLUST_DETAIL
(illust: PhotoData.PixivIllustStructure)
src/consts.ts:87
Function
PIXIV_ILLUST_IID_URL
(iid: number)
src/consts.ts:86
Function
PIXIV_URL_REVERSED_PROXY
(oUrl: string, pUrl: string)
src/consts.ts:90
Function
PhotoDataStore
(initStore: PhotoDataStructure[] = [], saverHandler: (() => void) | undefined)
src/photoData.ts:268
Function
QUEUE_REQUEST_TEXT
(type: string, name: string)
src/consts.ts:91
Function
QUEUE_TEXT
(type: string, chat: TelegramBot.Chat)
src/consts.ts:92
Function
QUEUE_WAS_BANNED
(chatId: number, fileId: string)
src/consts.ts:93
Function
SET_INTERVAL
(interval: string)
src/consts.ts:99
Function
UNBANNED_TEXT
(charId: number, fileId: string)
src/consts.ts:100
Function
UNSUPPORTED_FILE_EXTENSIONS
(fileName: string)
src/consts.ts:101
Function
UPDATED_PHOTO
(chat: TelegramBot.Chat, fileLink: string)
src/consts.ts:105
Function
UPDATE_PHOTO_ERROR
(chatId: number, reason: any)
src/consts.ts:102
Function
UPDATE_PHOTO_IGNORE
(chat: TelegramBot.Chat)
src/consts.ts:103
Function
UPLOADING_PHOTO
(chatId: string | number, image: Buffer, url: string)
src/consts.ts:107
Function
URL_CONTENT_TYPE_NOT_ACCEPTED
(url: string, mime: string)
src/consts.ts:109
Function
URL_FOUND_OG_IMAGE_URL
(msg: TelegramBot.Message, url: string, ogUrl: string)
src/consts.ts:114
Function
URL_HTML_IGNORE
(url: string)
src/consts.ts:111
next →
1–100 of 125, ranked by callers