forked from runetech0/discord-telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-conf.py
51 lines (31 loc) · 1.95 KB
/
sample-conf.py
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
# The Discord user token. It is a bit hard to obtain. You can follow the online tutorial here to
# obtain your user token for discord. Tutorial: https://www.youtube.com/watch?v=tI1lzqzLQCs&feature=emb_logo
USER_DISCORD_TOKEN = 'NzE0MDcxMjvo9E7dw'
# Go to your telegram account.
# In the left upper corner in the search box search fot BotFather
# Click on the bot father and then continue below.
# Send /newbot to BotFather and it will ask you to name your bot.
# After naming the bot it will ask you to set the user name for bot. This would be unique.
# Now after the username is set BotFather will give you your bot token paste it here below.
# Altenatively, Follow this (https://core.telegram.org/bots#6-botfather) to create your bot on telegram. It's super easy.
TELEGRAM_BOT_TOKEN = '11057250j9lpNg'
# Chat id is the id for the group or channel you want to receive messages at.
# To get this open your browser and paste the following url in the addressbar replacing group or channel name and telegram bot token.
# https://api.telegram.org/bot<YOUR_TELEGRAM_BOT_TOKEN_HERE>/sendMessage?text=%22Hello%22&chat_id=<YOUR_GROUP_NAME_HERE>
# In the response you will receive a json object containing all the info about the channel.
# Find the channel chat id under the chat. Copy and paste here.
# Alternatively you can use get_id.py script from telegram-msg-forwarder folder. But for that to work you will have to setup the forwarder first.
TELEGRAM_RECEIVER_CHAT_ID = -1001499013531 #"telegram_channel_chat_id_here"
# Configure the channels and server here to from where you want to receive the messages.
serversList = {
"botter server": ["help", "rules", "members", "general", "instructions"]
}
#SOCKS5 proxy settings
# Set PROXY to False to disable the proxy settings
PROXY = True
SOCKS5_SERVER = 'socks.com'
SOCKS5_PORT = 1080
# If proxy requires authentication then set AUTHETICATIN to True to enable.
AUTHENTICATION = False
USERNAME = 'yf4zjrt'
PASSWORD = 'nymh9x'