A simplest telegram to telegra.ph image uploader bot
API_HASH: Get this value from my.telegram.orgAPI_ID: Get this value from my.telegram.orgBOT_TOKEN: Get the bot token from Bot FatherBOT_OWNER: Bot Owner ID Get from ShowJson_RobotDATABASE_URL: MongoDB URL Get from hereUPDATE_CHANNEL: ID of channel. Without subscribing this channel users cannot use bot.
Press the button Deploy to heroku and give the values for the Creds vars. ๐
git clone https://github.com/ZauteKm/Image-Upload-Bot
cd Image-Upload-Bot
pip3 install -r requirements.txt
# <Create Variables appropriately>
python3 main.pyLibraries used: => Pyrogram => Telegraph
#!/usr/bin/env python3
# Copyright (C) @ZauteKm
# This program is free software: you can redistribute it 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.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.