主 题:天才程序源写的TG频道转发。
发 布 者:Boto
标签分类: 日常
时 间:2026-07-15 21:47:50
内容预览:import reimport asynciofrom telethon import TelegramClient, eventsfrom telethon.utils import get_input_media ==================== 配置板块 ====================API_ID = 12350013 替换为你的 API IDAPI_HASH = '634424aa8eaa72264be851e2e885b969' 替换为你的 API HASHFORWARD_RULES = [ { "sources": [-1001111111111, -1001111111111, "source_channel_username"], "destinations": [-1002222222222], "whitelist_keywords": [], 白名单:含有这些词才转发 (留空 [] 代表转发所有) "blacklist_keywords": ["采集", "管理员", "上架"], 黑名单:含有这些词则不转发 "replacements": [ (r"@\w+", "@xxx_bot "), 示例:替换原频道的 username 推广 (r"http[s]?://\S+", "[链接已屏蔽]"), 示例:屏蔽所有网址 (r"关键词1", "替换词1"),
直达链接: https://www.nodeseek.com/post-823448-1
发 布 者:Boto
标签分类: 日常
时 间:2026-07-15 21:47:50
内容预览:import reimport asynciofrom telethon import TelegramClient, eventsfrom telethon.utils import get_input_media ==================== 配置板块 ====================API_ID = 12350013 替换为你的 API IDAPI_HASH = '634424aa8eaa72264be851e2e885b969' 替换为你的 API HASHFORWARD_RULES = [ { "sources": [-1001111111111, -1001111111111, "source_channel_username"], "destinations": [-1002222222222], "whitelist_keywords": [], 白名单:含有这些词才转发 (留空 [] 代表转发所有) "blacklist_keywords": ["采集", "管理员", "上架"], 黑名单:含有这些词则不转发 "replacements": [ (r"@\w+", "@xxx_bot "), 示例:替换原频道的 username 推广 (r"http[s]?://\S+", "[链接已屏蔽]"), 示例:屏蔽所有网址 (r"关键词1", "替换词1"),
直达链接: https://www.nodeseek.com/post-823448-1