Giter Site home page Giter Site logo

Comments (7)

F33RNI avatar F33RNI commented on September 10, 2024

Are you writing to the right bot? (check bot's token)
If yes, pls show the logs here

from gpt-telegramus.

XamelionAG avatar XamelionAG commented on September 10, 2024

[2023-07-11 20:10:38] [258804 ] [INFO ] Logging setup is complete for current process
[2023-07-11 20:10:38] [258804 ] [INFO ] LoggingHandler PID: 258806
[2023-07-11 20:10:38] [258804 ] [INFO ] GPT-Telegramus version: 3.0.3
[2023-07-11 20:10:38] [258804 ] [INFO ] https://github.com/F33RNI/GPT-Telegramus
[2023-07-11 20:10:38] [258804 ] [INFO ] Loading config.json
[2023-07-11 20:10:38] [258804 ] [INFO ] Loaded json from config.json
[2023-07-11 20:10:38] [258804 ] [INFO ] Loading messages.json
[2023-07-11 20:10:38] [258804 ] [INFO ] Loaded json from messages.json
[2023-07-11 20:10:38] [258804 ] [INFO ] Starting queue_processing_loop
[2023-07-11 20:10:38] [258804 ] [INFO ] queue_processing_loop thread: Thread-1
[2023-07-11 20:10:38] [258804 ] [INFO ] Starting telegram bot

[2023-07-11 20:10:41] [258804 ] [INFO ] Application started //here it stops after i run the main.py and then i am writing to the bot /start and nothing happens!

[2023-07-11 20:13:39] [258804 ] [INFO ] Application is stopping. This might take a moment. ///// here i try STRG+C to close the bot

[2023-07-11 20:13:39] [258804 ] [ERROR ] Telegram bot error!
Traceback (most recent call last):
File "/home/projektxamelion/xamelionAI/GPT-Telegramus/BotHandler.py", line 518, in start_bot
self._event_loop.run_until_complete(self._application.run_polling())
File "/home/projektxamelion/.local/lib/python3.8/site-packages/telegram/ext/_application.py", line 752, in run_polling
return self.__run(
File "/home/projektxamelion/.local/lib/python3.8/site-packages/telegram/ext/_application.py", line 954, in __run
loop.run_until_complete(self.stop())
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/projektxamelion/.local/lib/python3.8/site-packages/telegram/ext/_application.py", line 634, in stop
await self.update_queue.join()
File "/usr/lib/python3.8/asyncio/queues.py", line 220, in join
await self._finished.wait()
File "/usr/lib/python3.8/asyncio/locks.py", line 309, in wait
await fut
RuntimeError: Task <Task pending name='Task-13' coro=<Application.stop() running at /home/projektxamelion/.local/lib/python3.8/site-packages/telegram/ext/_application.py>
[2023-07-11 20:13:39] [258804 ] [INFO ] Restarting bot polling after 30 seconds
[2023-07-11 20:13:48] [258804 ] [WARNING ] KeyboardInterrupt @ bot_start
[2023-07-11 20:13:48] [258804 ] [WARNING ] Telegram bot stopped
[2023-07-11 20:13:48] [258804 ] [WARNING ] Stopping queue_processing_loop
[2023-07-11 20:13:48] [258804 ] [WARNING ] queue_processing_loop finished
[2023-07-11 20:13:48] [258804 ] [INFO ] GPT-Telegramus exited successfully

from gpt-telegramus.

XamelionAG avatar XamelionAG commented on September 10, 2024

i see there is no users.json added to repository... maybe it is it?

from gpt-telegramus.

F33RNI avatar F33RNI commented on September 10, 2024

users.json is a user database file that is created "dynamically".

For now pls try to stop the bot, then write something to it, and then open the link below (replace <TOKEN> in the link with your bot's API token). You should see your message. If you don't see it, then it's a problem with your telegram bot token / API / etc., not with GPT-Telegramus

https://api.telegram.org/bot<TOKEN>/getUpdates

from gpt-telegramus.

XamelionAG avatar XamelionAG commented on September 10, 2024

I have followed your instructions.
With token is everything ok.
What can it be?

from gpt-telegramus.

F33RNI avatar F33RNI commented on September 10, 2024

Please try running the bot on a different machine / Python version...
because I can't reproduce your problem =(

from gpt-telegramus.

F33RNI avatar F33RNI commented on September 10, 2024

Сlosing this Issue, because neither I nor anyone else can reproduce your problem

from gpt-telegramus.

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.