Skip to content

Commit 7449ae1

Browse files
add: info for multiclient usage
1 parent f47b033 commit 7449ae1

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ An example of `.env` file:
9595
API_ID=452525
9696
API_HASH=esx576f8738x883f3sfzx83
9797
BOT_TOKEN=55838383:yourtbottokenhere
98+
MULTI_CLIENT=True
99+
MULTI_TOK1=55838383:yourfirstmulticlientbottokenhere
100+
MULTI_TOK2=55838383:yoursecondmulticlientbottokenhere
101+
MULTI_TOK3=55838383:yourthirdmulticlientbottokenhere
98102
BIN_CHANNEL=-100
99103
PORT=8080
100104
FQDN=yourserverip
@@ -111,7 +115,17 @@ HAS_SSL=False
111115

112116
`BIN_CHANNEL` : Create a new channel (private/public), post something in your channel. Forward that post to [@missrose_bot](https://telegram.dog/MissRose_bot) and **reply** `\id`. Now copy paste the forwarded channel ID in this field.
113117

118+
### For MultiClient (Still in development)
114119

120+
`MULTI_CLIENT`: Set this variable to `True` if you want to enable multi-client support.
121+
122+
`MULTI_TOK1`: Add your first bot token here.
123+
124+
`MULTI_TOK2`: Add your second bot token here.
125+
126+
`MULTI_TOK3`: Add your third bot token here.
127+
128+
`MULTI_TOK4`: Add your fourth bot token here.
115129
### Optional Vars
116130

117131
`SLEEP_THRESHOLD` : Set a sleep threshold for flood wait exceptions happening globally in this telegram bot instance, below which any request that raises a flood wait will be automatically invoked again after sleeping for the required amount of time. Flood wait exceptions requiring higher waiting times will be raised. Defaults to 60 seconds.
@@ -131,7 +145,7 @@ HAS_SSL=False
131145
`PING_INTERVAL` : The time in ms you want the servers to be pinged each time to avoid sleeping (Only for Heroku). Defaults to `1200` or 20 minutes.
132146
## How to use the bot
133147

134-
:warning: **Before using the bot, don't forget to add the bot to the `BIN_CHANNEL` as an admin**
148+
:warning: **Before using the bot, don't forget to add all the bots (multi-client ones too) to the `BIN_CHANNEL` as an admin**
135149

136150
`/start` : To check if the bot is alive or not.
137151

@@ -156,6 +170,7 @@ You can contact either via my [Telegram Group](https://xn--r1a.click/WhyThisUser
156170
## Credits
157171

158172
- Me
159-
- [eyaadh](https://github.com/eyaadh) for his awesome [Megatron Bot](https://github.com/eyaadh/megadlbot_oss)
160-
- [Dan Tès](https://telegram.dog/haskell) for his [Pyrogram Library](https://github.com/pyrogram/pyrogram)
173+
- [eyaadh](https://github.com/eyaadh) for his awesome [Megatron Bot](https://github.com/eyaadh/megadlbot_oss).
174+
- [BlackStone](https://github.com/eyMarv) for adding multi-client support.
175+
- [Dan Tès](https://telegram.dog/haskell) for his [Pyrogram Library].(https://github.com/pyrogram/pyrogram)
161176
- [TheHamkerCat](https://github.com/TheHamkerCat) for helping me with my common doubts.

0 commit comments

Comments
 (0)