-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathconfig.py
More file actions
67 lines (51 loc) · 2.13 KB
/
config.py
File metadata and controls
67 lines (51 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# AutoCaptionBot by RknDeveloper
# Copyright (c) 2024 RknDeveloper
# Licensed under the MIT License
# https://github.com/RknDeveloper/Rkn-AutoCaptionBot/blob/main/LICENSE
# Please retain this credit when using or forking this code.
# Developer Contacts:
# Telegram: @RknDeveloperr
# Updates Channel: @Rkn_Bots_Updates & @Rkn_Botz
# Special Thanks To: @ReshamOwner
# Update Channels: @Digital_Botz & @DigitalBotz_Support
# ⚠️ Please do not remove this credit!
import os
import time
class Rkn_Botz(object):
# Rkn client config (required)
API_ID = os.environ.get("API_ID", "")
API_HASH = os.environ.get("API_HASH", "")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
# Start pic (default image link)
RKN_PIC = os.environ.get("RKN_PIC", "https://telegra.ph/file/21a8e96b45cd6ac4d3da6.jpg")
# Bot uptime (start time)
BOT_UPTIME = time.time()
# Server port (default 8080)
PORT = int(os.environ.get("PORT", "8080"))
# Force subscribe channel username (without @) (only public chats username required)
FORCE_SUB = os.environ.get("FORCE_SUB", "Rkn_Botz")
# Database config (required)
DB_NAME = os.environ.get("DB_NAME", "AutoCaption_V05_Bot")
DB_URL = os.environ.get("DB_URL", "")
# Default caption (with safe fallback)
DEFAULT_CAPTION = os.environ.get(
"DEFAULT_CAPTION",
"<b><a href='https://t.me/Rkn_Botz'>{file_name} Main Telegram Channel: @Rkn_Bots_Updates</a></b>"
)
# Sticker ID default
STICKER_ID = os.environ.get(
"STICKER_ID",
"CAACAgIAAxkBAAELFqBllhB70i13m-woXeIWDXU6BD2j7wAC9gcAAkb7rAR7xdjVOS5ziTQE"
)
# Admin ID (single integer)
ADMIN = int(os.environ.get('ADMIN', '5960922591')) # Yahan default ko apne Telegram User ID se replace karo
# ————
# End of file
# Original author: @RknDeveloperr
# GitHub: https://github.com/RknDeveloper
# Developer Contacts:
# Telegram: @RknDeveloperr
# Updates Channel: @Rkn_Bots_Updates & @Rkn_Botz
# Special Thanks To: @ReshamOwner
# Update Channels: @Digital_Botz & @DigitalBotz_Support
# ⚠️ Please do not remove this credit!