Comments (10)
@lukemin Only see One Bot in The Bot Running URL?
from tg-filestreambot.
.evn API_ID=1012***** API_HASH=ea8e8e41812****************** BOT_TOKEN=5130_4:AAGkmwTdRlcPSX_********* MULTI_TOKEN1=5250:AAF9or7yt4*** MULTI_TOKEN2=51304:AAGkmwTd** BIN_CHANNEL=-1001651968922 PORT=8080 FQDN=domain name HAS_SSL=True NO_PORT=True
only the main bot with BOT_TOKEN worked. another bots did not
Means MULTI_TOKEN Bot's are Not Responding to Your Messages?
from tg-filestreambot.
yes, MULTI_TOKEN Bot's are Not Responding to my Messages. I am running this script on my vps
from tg-filestreambot.
@lukemin Multi Client Bot's are not Coded to Respond to Messages
from tg-filestreambot.
@lukemin Multi Client Bot's are not Coded to Respond to Messages
Is there any way to check the Multi Client Bots working or not?
from tg-filestreambot.
@lukemin You will See When Starting the Bot
Or Visit the Bot URL
from tg-filestreambot.
@DeekshithSH
(venv) root@instance-20210817-1303:/home/ubuntu/TG-FileStreamBot# python3 -m WebStreamer
-------------------- Initializing Telegram Bot --------------------
------------------------------ DONE ------------------------------
---------------------- Initializing Clients ----------------------
Starting - Client 1
This will take some time, please wait...
Multi-Client Mode Enabled
------------------------------ DONE ------------------------------
--------------------- Initalizing Web Server ---------------------
------------------------------ DONE ------------------------------
------------------------- Service Started -------------------------
bot =>> ***bot
server ip =>> 0.0.0.0
When I vist the web, code are shown as bellow:
{"server_status": "running", "uptime": "30s", "telegram_bot": "@ru***_bot", "connected_bots": 2, "loads": {"bot1": 0, "bot2": 0}, "version": 2.2}
Does it mean all the bots working?
When I sent some photos to the main bot, the script crashed, logs as bellow:
[07/04/2022 20:18:44][ERROR] => 'Photo' object has no attribute 'file_name'
Traceback (most recent call last):
File "/home/ubuntu/TG-FileStreamBot/venv/lib/python3.9/site-packages/pyrogram/dispatcher.py", line 222, in handler_worker
await handler.callback(self.client, *args)
File "/home/ubuntu/TG-FileStreamBot/WebStreamer/bot/plugins/stream.py", line 31, in media_receive_handler
stream_link = f"{Var.URL}{log_msg.message_id}/{quote_plus(get_name(m))}?hash={get_hash(log_msg)}"
File "/home/ubuntu/TG-FileStreamBot/WebStreamer/utils/file_properties.py", line 55, in get_name
return media.file_name or ""
AttributeError: 'Photo' object has no attribute 'file_name'
But when I send some videos, it works.
from tg-filestreambot.
@lukemin Ya i think it's a Error a Bug when Sending Photo The Bot Can't find a Name for The File. Wrench may fix it,
All Of Your Multi-Client Working
from tg-filestreambot.
THX for your great help.
from tg-filestreambot.
Only the main bot will be responding to messages, all other bots are just used for the webserver.
from tg-filestreambot.
Related Issues (20)
- auth.ExportAuthorization Floodwait HOT 11
- Huge Memory Leak HOT 7
- how to speed up while using nginx? HOT 4
- 404 NOT FOUND HOT 1
- VD Merwe
- 404 Error for Koyeb.com
- Support For Https/2 HOT 1
- Handy nginx reverse proxy?
- Issues with deploying using docker compose HOT 13
- golang branch: peer not found error when sending any file to the bot HOT 1
- Add render.com support
- golang: IP and port are configured but links are different HOT 7
- golang: Add support for importing tokens from a separate file
- golang: vlc HOT 1
- Unable to access the provided link. HOT 3
- [Enhanced] Multi-threaded download support HOT 2
- signal: killed HOT 1
- 【fixed】share my succeed method
- Error R10 (Boot timeout) Can't host in heroku HOT 3
- Error - unexpected type of input peer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tg-filestreambot.