Skip to content

EverythingSuckz/PostShareBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostShareBot

A bot where the subscribers can send their own content to the channel admins and could contribute their Telegram channel.

Setup

Heroku

Soon!

Host it locally (easy)

git clone https://github.com/EverythingSuckz/PostShareBot
cd PostShareBot
pip3.9 install -r requirements.txt
# create a .env file and add all the variables there
python3.9 bot.py

an example of .env file

API_ID=
API_HASH=
BOT_TOKEN=
DB_URI=
LOG_GROUP=
POST_CHANNEL=

Mandatory Variables

API_ID : Goto my.telegram.org to obtain this.

API_HASH : Goto my.telegram.org to obtain this.

BOT_TOKEN : Get the bot token from @BotFather.

DB_URI : Get this value from ElephantSQL.

LOG_GROUP : Create a new group (private), add @missrose_bot and type /id. Now copy paste the ID into this field. Note: The should be either a group or a supergroup.

POST_CHANNEL : The channel where you want the approved posts to be posted in. If your channel is public, then you may pass the channel username here or if it's private, then you'll have to do some extra works, like forward any post from your private channel to @missrose_bot and reply /id. Now copy paste the channel ID into this field.

Report your issues and doubts at the Support Chat.

License

GNU Affero General Public License Image

Copyright (C) 2021 by EverythingSuckz under GNU Affero General Public License.

Post Share Bot is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

About

tell me be a better repo name xD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages