example config: add comments, change port
This commit is contained in:
parent
b3e13ea6e8
commit
4c3a2f405b
|
@ -7,9 +7,12 @@ from process_queue import *
|
||||||
|
|
||||||
coloredlogs.install(level='INFO')
|
coloredlogs.install(level='INFO')
|
||||||
|
|
||||||
api_id = YOUR TG API ID HERE
|
# https://docs.telethon.dev/en/stable/basic/signing-in.html
|
||||||
api_hash = YOUR TG API HASH HERE
|
api_id = <YOUR TG API ID HERE>
|
||||||
bot_token = YOUR BOT TOKEN HERE
|
api_hash = <YOUR TG API HASH HERE>
|
||||||
|
|
||||||
|
# Get it from @BotFather bot.
|
||||||
|
bot_token = <YOUR BOT TOKEN HERE>
|
||||||
|
|
||||||
client = TelegramClient('bot', api_id, api_hash)
|
client = TelegramClient('bot', api_id, api_hash)
|
||||||
|
|
||||||
|
@ -21,8 +24,14 @@ conn.row_factory = sqlite3.Row
|
||||||
client.conn = conn
|
client.conn = conn
|
||||||
client.process = None
|
client.process = None
|
||||||
|
|
||||||
client.log_channel_id = ID OF LOG CHANNEL
|
# To get channel ID: Send something in private(!) channel, tap/click on it,
|
||||||
client.main_channel_id = ID OF RAW CHANNEL
|
# choose "Copy post link", paste it somewhere. It should look like this:
|
||||||
|
# https://t.me/c/12345/2
|
||||||
|
# 12345 part is ID - add "-100" prefix before it (like this: -10012345)
|
||||||
|
# Replace placeholder with result:
|
||||||
|
client.log_channel_id = <ID OF LOG CHANNEL>
|
||||||
|
client.main_channel_id = <ID OF RAW CHANNEL>
|
||||||
|
|
||||||
client.queue = PriorityQueue()
|
client.queue = PriorityQueue()
|
||||||
client.media_lock = asyncio.Lock()
|
client.media_lock = asyncio.Lock()
|
||||||
client.process_queue = False
|
client.process_queue = False
|
||||||
|
@ -30,7 +39,7 @@ client.process_queue = False
|
||||||
client.admin_id = USER ID OF THE ADMIN
|
client.admin_id = USER ID OF THE ADMIN
|
||||||
|
|
||||||
workers = [
|
workers = [
|
||||||
Worker('http://127.0.0.1:9000', client, 'armorlink'),
|
Worker('http://127.0.0.1:7860', client, 'armorlink'),
|
||||||
#Worker('http://127.0.0.1:9001', client, 'armorlink-low'),
|
#Worker('http://127.0.0.1:9001', client, 'armorlink-low'),
|
||||||
#Worker('http://local.proxy:9000', client, 'g14')
|
#Worker('http://local.proxy:9000', client, 'g14')
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue