Giter VIP home page Giter VIP logo

Comments (10)

DeekshithSH avatar DeekshithSH commented on May 18, 2024

@lukemin Only see One Bot in The Bot Running URL?

from tg-filestreambot.

DeekshithSH avatar DeekshithSH commented on May 18, 2024

.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.

lukemin avatar lukemin commented on May 18, 2024

yes, MULTI_TOKEN Bot's are Not Responding to my Messages. I am running this script on my vps

from tg-filestreambot.

DeekshithSH avatar DeekshithSH commented on May 18, 2024

@lukemin Multi Client Bot's are not Coded to Respond to Messages

from tg-filestreambot.

lukemin avatar lukemin commented on May 18, 2024

@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.

DeekshithSH avatar DeekshithSH commented on May 18, 2024

@lukemin You will See When Starting the Bot
Or Visit the Bot URL

from tg-filestreambot.

lukemin avatar lukemin commented on May 18, 2024

@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.

DeekshithSH avatar DeekshithSH commented on May 18, 2024

@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.

lukemin avatar lukemin commented on May 18, 2024

THX for your great help.

from tg-filestreambot.

EverythingSuckz avatar EverythingSuckz commented on May 18, 2024

Only the main bot will be responding to messages, all other bots are just used for the webserver.

from tg-filestreambot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.