Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PastKing/tgbot-verify
/ functions
Functions
162 in github.com/PastKing/tgbot-verify
⨍
Functions
162
◇
Types & classes
11
↓ 16 callers
Method
get_connection
获取数据库连接
database_mysql.py:38
↓ 14 callers
Method
user_exists
检查用户是否存在
database_mysql.py:212
↓ 13 callers
Method
get_user
获取用户信息
database_mysql.py:189
↓ 13 callers
Function
reject_group_command
群聊限制:仅允许 /verify /verify2 /verify3 /verify4 /verify5 /qd
utils/checks.py:18
↓ 12 callers
Method
add_balance
增加用户积分
database_mysql.py:267
↓ 10 callers
Method
is_user_blocked
检查用户是否被拉黑
database_mysql.py:216
↓ 6 callers
Method
_sheerid_request
发送 SheerID API 请求
Boltnew/sheerid_verifier.py:75
↓ 6 callers
Method
add_verification
添加验证记录
database_mysql.py:360
↓ 5 callers
Method
deduct_balance
扣除用户积分
database_mysql.py:287
↓ 5 callers
Function
get_insufficient_balance_message
获取积分不足消息
utils/messages.py:91
↓ 5 callers
Function
get_verify_usage_message
获取验证命令使用说明
utils/messages.py:102
↓ 5 callers
Method
parse_verification_id
从 URL 中解析验证 ID
k12/sheerid_verifier.py:66
↓ 4 callers
Method
_format_name
格式化名字(首字母大写)
k12/name_generator.py:63
↓ 4 callers
Method
_format_name
格式化名字(首字母大写)
youtube/name_generator.py:63
↓ 4 callers
Method
_format_name
格式化名字(首字母大写)
Boltnew/name_generator.py:63
↓ 4 callers
Method
_format_name
格式化名字(首字母大写)
spotify/name_generator.py:63
↓ 4 callers
Method
_format_name
格式化名字(首字母大写)
one/name_generator.py:63
↓ 4 callers
Method
_sheerid_request
发送 SheerID API 请求
k12/sheerid_verifier.py:73
↓ 4 callers
Method
_sheerid_request
发送 SheerID API 请求
youtube/sheerid_verifier.py:50
↓ 4 callers
Method
_sheerid_request
发送 SheerID API 请求
spotify/sheerid_verifier.py:50
↓ 4 callers
Method
_sheerid_request
发送 SheerID API 请求
one/sheerid_verifier.py:50
↓ 3 callers
Function
get_verification_semaphore
获取指定验证类型的信号量 Args: verification_type: 验证类型 Returns: asyncio.Semaphore: 对应的信号量
utils/concurrency.py:58
↓ 2 callers
Method
_generate_component
根据模式生成名字组件
k12/name_generator.py:37
↓ 2 callers
Method
_generate_component
根据模式生成名字组件
youtube/name_generator.py:37
↓ 2 callers
Method
_generate_component
根据模式生成名字组件
Boltnew/name_generator.py:37
↓ 2 callers
Method
_generate_component
根据模式生成名字组件
spotify/name_generator.py:37
↓ 2 callers
Method
_generate_component
根据模式生成名字组件
one/name_generator.py:37
↓ 2 callers
Function
_render_template
读取模板,替换姓名/工号/日期,并展开 CSS 变量。
k12/img_generator.py:10
↓ 2 callers
Method
_upload_to_s3
上传文件到 S3
k12/sheerid_verifier.py:100
↓ 2 callers
Function
adjust_concurrency_limits
动态调整并发限制 Args: multiplier: 调整倍数(0.5-2.0)
utils/concurrency.py:132
↓ 2 callers
Method
generate
生成随机英文名字 Returns: dict: 包含 first_name, last_name, full_name
k12/name_generator.py:68
↓ 2 callers
Function
generate_image
生成 Penn State LionPATH 截图 PNG Args: first_name: 名字 last_name: 姓氏 school_id: 学校 ID Returns: bytes: PNG 图
youtube/img_generator.py:343
↓ 2 callers
Function
generate_image
生成 Penn State LionPATH 截图 PNG Args: first_name: 名字 last_name: 姓氏 school_id: 学校 ID Returns: bytes: PNG 图
spotify/img_generator.py:343
↓ 2 callers
Function
generate_image
生成 Penn State LionPATH 截图 PNG Args: first_name: 名字 last_name: 姓氏 school_id: 学校 ID Returns: bytes: PNG 图
one/img_generator.py:343
↓ 2 callers
Function
generate_images
生成两张 PNG:教师卡片 + 在职证明(并发优化版) Args: first_name: 名 last_name: 姓 school_id: 学校 ID(保留接口一致) Returns: list[dic
Boltnew/img_generator.py:569
↓ 2 callers
Function
generate_psu_email
生成 PSU 邮箱 格式: firstName.lastName + 3-4位数字 @psu.edu
youtube/img_generator.py:13
↓ 2 callers
Function
generate_psu_email
生成 PSU 邮箱 格式: firstName.lastName + 3-4位数字 @psu.edu
spotify/img_generator.py:13
↓ 2 callers
Function
generate_psu_email
生成 PSU 邮箱 格式: firstName.lastName + 3-4位数字 @psu.edu
one/img_generator.py:13
↓ 2 callers
Function
generate_psu_id
生成随机 PSU ID (9位数字)
youtube/img_generator.py:8
↓ 2 callers
Function
generate_psu_id
生成随机 PSU ID (9位数字)
spotify/img_generator.py:8
↓ 2 callers
Function
generate_psu_id
生成随机 PSU ID (9位数字)
one/img_generator.py:8
↓ 2 callers
Function
generate_teacher_pdf
生成教师证明 PDF 文档字节。
k12/img_generator.py:36
↓ 2 callers
Method
parse_external_user_id
(url: str)
Boltnew/sheerid_verifier.py:53
↓ 1 callers
Function
_auto_get_reward_code
自动获取认证码(轻量级轮询,不影响并发) Args: verification_id: 验证ID max_wait: 最大等待时间(秒) interval: 轮询间隔(秒) Returns:
handlers/verify_commands.py:401
↓ 1 callers
Function
_calculate_max_concurrency
根据系统资源计算最大并发数
utils/concurrency.py:17
↓ 1 callers
Method
_generate_device_fingerprint
生成设备指纹
k12/sheerid_verifier.py:55
↓ 1 callers
Method
_generate_device_fingerprint
()
youtube/sheerid_verifier.py:34
↓ 1 callers
Method
_generate_device_fingerprint
()
Boltnew/sheerid_verifier.py:36
↓ 1 callers
Method
_generate_device_fingerprint
()
spotify/sheerid_verifier.py:34
↓ 1 callers
Method
_generate_device_fingerprint
()
one/sheerid_verifier.py:34
↓ 1 callers
Function
_get_browser_context
获取或创建浏览器上下文(单例模式)
Boltnew/img_generator.py:26
↓ 1 callers
Function
_html_to_png_batch
批量并发生成多张 PNG(性能优化版) Args: html_list: [(html_content, width, height), ...] Returns: list[bytes]: PNG 数据列表
Boltnew/img_generator.py:514
↓ 1 callers
Method
_upload_to_s3
上传 PNG 到 S3
youtube/sheerid_verifier.py:71
↓ 1 callers
Method
_upload_to_s3
上传 PNG 到 S3
Boltnew/sheerid_verifier.py:92
↓ 1 callers
Method
_upload_to_s3
上传 PNG 到 S3
spotify/sheerid_verifier.py:71
↓ 1 callers
Method
_upload_to_s3
上传 PNG 到 S3
one/sheerid_verifier.py:71
↓ 1 callers
Method
block_user
拉黑用户
database_mysql.py:221
↓ 1 callers
Function
build_headers
()
oaiteam/invite.py:31
↓ 1 callers
Method
can_checkin
检查用户今天是否可以签到
database_mysql.py:311
↓ 1 callers
Method
checkin
用户签到(修复无限签到bug)
database_mysql.py:326
↓ 1 callers
Method
create_card_key
创建卡密
database_mysql.py:406
↓ 1 callers
Method
create_user
创建新用户
database_mysql.py:145
↓ 1 callers
Method
create_verification
通过 installPageUrl 申请新的 verificationId
Boltnew/sheerid_verifier.py:59
↓ 1 callers
Method
generate
生成随机英文名字 Returns: dict: 包含 first_name, last_name, full_name
youtube/name_generator.py:68
↓ 1 callers
Method
generate
生成随机英文名字 Returns: dict: 包含 first_name, last_name, full_name
Boltnew/name_generator.py:68
↓ 1 callers
Method
generate
生成随机英文名字 Returns: dict: 包含 first_name, last_name, full_name
spotify/name_generator.py:68
↓ 1 callers
Method
generate
生成随机英文名字 Returns: dict: 包含 first_name, last_name, full_name
one/name_generator.py:68
↓ 1 callers
Function
generate_birth_date
生成随机生日(教师年龄范围 1970-1990) Returns: str: YYYY-MM-DD 格式的日期
k12/name_generator.py:104
↓ 1 callers
Function
generate_birth_date
生成随机生日(2000-2005年) Returns: str: YYYY-MM-DD 格式的日期
youtube/name_generator.py:103
↓ 1 callers
Function
generate_birth_date
生成随机生日(2000-2005年) Returns: str: YYYY-MM-DD 格式的日期
Boltnew/name_generator.py:103
↓ 1 callers
Function
generate_birth_date
生成随机生日(2000-2005年) Returns: str: YYYY-MM-DD 格式的日期
spotify/name_generator.py:103
↓ 1 callers
Function
generate_birth_date
生成随机生日(2000-2005年) Returns: str: YYYY-MM-DD 格式的日期
one/name_generator.py:103
↓ 1 callers
Function
generate_email
生成随机邮箱(教师使用常见邮箱) Returns: str: 邮箱地址
k12/name_generator.py:88
↓ 1 callers
Function
generate_employment_letter_html
生成教师在职证明 HTML。
Boltnew/img_generator.py:295
↓ 1 callers
Function
generate_html
生成 Penn State LionPATH HTML Args: first_name: 名字 last_name: 姓氏 school_id: 学校 ID Returns: str: HTML 内容
youtube/img_generator.py:24
↓ 1 callers
Function
generate_html
生成 Penn State LionPATH HTML Args: first_name: 名字 last_name: 姓氏 school_id: 学校 ID Returns: str: HTML 内容
spotify/img_generator.py:24
↓ 1 callers
Function
generate_html
生成 Penn State LionPATH HTML Args: first_name: 名字 last_name: 姓氏 school_id: 学校 ID Returns: str: HTML 内容
one/img_generator.py:24
↓ 1 callers
Function
generate_psu_email
生成 PSU 邮箱 格式: firstName.lastName + 3-4位数字 @psu.edu
Boltnew/img_generator.py:11
↓ 1 callers
Function
generate_psu_id
生成随机 PSU ID (9位数字)
Boltnew/img_generator.py:6
↓ 1 callers
Function
generate_teacher_card_html
生成教师证件 HTML。
Boltnew/img_generator.py:83
↓ 1 callers
Function
generate_teacher_png
使用 Playwright 截图生成 PNG(需要 playwright + chromium 已安装)。
k12/img_generator.py:50
↓ 1 callers
Function
get_about_message
获取关于消息
utils/messages.py:28
↓ 1 callers
Method
get_all_card_keys
获取所有卡密(可按创建者筛选)
database_mysql.py:515
↓ 1 callers
Method
get_all_user_ids
获取所有用户ID
database_mysql.py:534
↓ 1 callers
Method
get_blacklist
获取黑名单列表
database_mysql.py:255
↓ 1 callers
Function
get_help_message
获取帮助消息
utils/messages.py:54
↓ 1 callers
Function
get_welcome_message
获取欢迎消息
utils/messages.py:5
↓ 1 callers
Method
init_database
初始化数据库表结构
database_mysql.py:42
↓ 1 callers
Function
is_group_chat
判断是否为群聊
utils/checks.py:12
↓ 1 callers
Function
main
主函数
bot.py:48
↓ 1 callers
Function
main
主函数 - 命令行界面
youtube/sheerid_verifier.py:212
↓ 1 callers
Function
main
主函数 - 命令行界面
Boltnew/sheerid_verifier.py:267
↓ 1 callers
Function
main
主函数 - 命令行界面
spotify/sheerid_verifier.py:212
↓ 1 callers
Function
main
()
oaiteam/invite.py:69
↓ 1 callers
Function
main
主函数 - 命令行界面
one/sheerid_verifier.py:212
↓ 1 callers
Function
monitor_loop
()
utils/concurrency.py:170
↓ 1 callers
Function
monitor_system_load
监控系统负载 Returns: dict: 系统负载信息
utils/concurrency.py:108
↓ 1 callers
Method
normalize_url
规范化 URL(保留原样,兼容现有接口)
Boltnew/sheerid_verifier.py:41
↓ 1 callers
Method
parse_verification_id
(url: str)
youtube/sheerid_verifier.py:44
↓ 1 callers
Method
parse_verification_id
(url: str)
Boltnew/sheerid_verifier.py:46
next →
1–100 of 162, ranked by callers