Skip to content

✈️ A script that catches new messages in the Telegram channel and automatically comments

License

Notifications You must be signed in to change notification settings

d4nila/autocomment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Autocommenting Script

Setup

$ git clone https://github.com/btfspace/autocomment
$ cd autocomment
$ pip3 install telethon

After that, you need to create an application in Telegram.
To do this, go to My TG, log in to your account and make the application, then copy api_id and api_hash to config.ini.
Then set up the channels:
Copy the names of the desired channels in config.ini to the channels variable. If you have several channels, write them separated by commas.
To configure the messages to be sent, configure the messages variable. If you have one channel, just write a message, if you have several channels, write messages in the order of channels for each channel. Example:

[posthandler]
channels=Example,Example 2
api_id=1337
api_hash=fe78fv7ev78f6vrf78vb6
messages=Message for Example,Message for Example 2

This completes the setup.

Using

$ python3 main.py

Wait for the channel names to be checked and leave the script enabled.
That's it, autocommenting is running.
The specified comment will be written on each new message with a discussion in the channel.

License

THERE IS NO LICENSE

About

✈️ A script that catches new messages in the Telegram channel and automatically comments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages