TeleBot
585 subscribers
3 photos
64 links
💥

[Python] Telegram UserBot

https://www.github.com/xditya/TeleBot

For more help, join @TeleBotHelpChat

All links - @TeleBotSupport

💥
Download Telegram
Channel created
Channel photo updated
How to Deploy your UserBot to Heroku?

YOU ABSOLUTELY MUST READ THE ENTIRE STEPS, AND NOT SKIM THROUGH ANY OF IT!

👉 Install this application from Google Play

👉 Open Termux

👉 termux-setup-storage

👉 pkg install python git

👉apt install git python -y && pip install telethon

👉 python -m venv venv && . ./venv/bin/activate

👉 cd /sdcard/Telegram

👉 git clone https://github.com/xditya/TeleBot

👉 cd TeleBot

👉 pip install telethon

👉 python3 telesetup.py

👉 Follow the OnScreen prompts

N.B.: Keep this string safe! Anyone with this string can use it to login into your account and do anything they want to to do.

👉 Open this link

👉 Follow the OnScreen prompts

👉 App name, APP_ID, API_HASH, STRING_SESSION, TG_BOT_TOKEN_BF_HER and TG_BOT_USER_NAME_BF_HER are mandatory fields. Rest of the fields can be left with the default values.

Now go to www.github.com/xditya/TeleBot
👉 Fork and star repository (if on android, enable desktop site to fork)

👉 Tap on Deploy app

👉 Wait for deploy to finish.

👉 After deploy press Manage App then go to Resources

👉 Enable the worker dyno, by toggling the slide-toggle.

👉 Done. Your UserBot is alive. Check with .help in any chat.

Credits @Xtratgbot

Thanks for @SpEcHiDe for writing this out


〰️ @userbottuts 〰️
To add your own name to alive and kang, firstly, make sure your bot is up to date by using the .update command. Check out it's tutorial here - https://t.me/TGUserBott/5
Do not panic immediately after using the updater. It takes time to deploy the bot on heroku.

To add your name, simply go to heroku and add the following vars:

Key: ALIVE_NAME
Value: The name you want to show.

And that's pretty much it.

Q: how to add vars in heroku?
A: Go to heroku
Desktop view
Your app
Settings
Reveal config vars
Add key and value

Credits @XtraTgBot

@TGUserBott
Using the Updater

✌🏻You need to set these two variables in heroku vars..

HEROKU_APP_NAME
It's the name of your app on heroku.

HEROKU_API_KEY
You can get the value for this on
https://dashboard.heroku.com/account look for api key there

How to add vars in heroku?
Please read this.
For those who're having trouble with setting up pmpermit and afk,

Go to heroku
Desktop view
Your app
Settings
Reveal config vars
Add key and value

For pm permit, the keys are-
PRIVATE_GROUP_ID
And
PRIVATE_GROUP_BOT_API_ID

You can get the value for it by making a private group and using the .get_id command in the group. You can use the same value in both.
Tutorial for setting up Autopic

Go to heroku
Desktop view
your app
settings
reveal config vars
Add Value, the key already exists

Key: DOWNLOAD_PFP_URL_CLOCK
Value: upload your image to telegraph/any such site and paste the url

Syntax: .autopic tilt

DISCLAIMER: Using autopic might lead to tg banning your acc so take care.

edit -This no longer works, just reply to a pic with .autopic now.
TeleBot pinned Deleted message