Imyr / TeleRG

Grabs torrent or magnet links from feeds. Basically, an RSS bot. Has been modified to be used with Telegram Mirror Bot, as was it's intended purpose.
MIT License
19 stars 7 forks source link

Variables.... #2

Closed dishapatel010 closed 3 years ago

dishapatel010 commented 3 years ago

Can u give example/ explanation for config stuff

Imyr commented 3 years ago

id: Telegram Group ID (-1001231231231) url: link to RSS (https://timesofindia.indiatimes.com/rssfeedstopstories.cms) command: Bot mirror command (/mirror@mirrorbot) incl [Optional]: will only download files that have any of the following strings in their title (["1080p", "2021"]) excl [Optional]: will not download files that have any of the following strings in their title (["VXT", "HDTV", "ION10"])

dishapatel010 commented 3 years ago

id: Telegram Group ID (-1001231231231) url: link to RSS (https://timesofindia.indiatimes.com/rssfeedstopstories.cms) command: Bot mirror command (/mirror@mirrorbot) incl [Optional]: will only download files that have any of the following strings in their title (["1080p", "2021"]) excl [Optional]: will not download files that have any of the following strings in their title (["VXT", "HDTV", "ION10"])

Where will be bot token ? & also explain credentials.json

Imyr commented 3 years ago

log: log channel/group id (-1002313212311) tg_id: telegram api id (1123129) tg_hash: telegram api hash ("abcbab123971bababavasdasd") mongodb_url: mongodb database url with password (mongodb+srv://user:pass@url.com/tablename?retryWrites=true&w=majority)

It uses one's accounts session (can call it a userbot, maybe), so bot token isn't needed. Also, the first time it's run, it asks for your login credentials. That is to generate the mentioned .session file (I don't know the exact terminology). So, it's recommended to run locally first to generate said file. I don't know how to work with user session strings (which might eliminate the need for the session file, hence making the process a lot easier). Any help or links to documentation/resources is appreciated.