TGCopyBot | python script to copy telegram messages | Bot library
kandi X-RAY | TGCopyBot Summary
kandi X-RAY | TGCopyBot Summary
A python script to copy telegram messages to another chat (without forwarding)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process new messages
- Copy a message to a chat
TGCopyBot Key Features
TGCopyBot Examples and Code Snippets
Community Discussions
Trending Discussions on TGCopyBot
QUESTION
I am trying to deploy this Telegram bot* on Heroku: https://github.com/radinshayanfar/TGCopyBot. The bot first needs to sign in to my account, which requires a login code that's sent to my devices on which I'm already logged in. When running the bot locally from a terminal, it requests input from the user, Enter code:
, upon which I enter the login code in the terminal and press Enter, and the bot proceeds to do its work. But after deploying the bot on Heroku and running the dyno, it fails and this shows in the logs:
ANSWER
Answered 2021-Jul-01 at 15:25On your local environment, the built-in input
works fine because you have access to the Terminal and can provide the input.
On Heroku there is no such an option so the command returns the EOFError exception because the function hits the end-of-file condition (EOF) without reading anything.
A possible solution might be to request the user to enter the login code
via the Telegram Bot, for example as first step after the user starts chatting.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TGCopyBot
You can use TGCopyBot like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page