TeleBot
588 subscribers
3 photos
64 links
๐Ÿ’ฅ

[Python] Telegram UserBot

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

For more help, join @TeleBotHelpChat

All links - @TeleBotSupport

๐Ÿ’ฅ
Download Telegram
Get to know some basic things about TeleBot by reading the docs.

They can be found here.

ยฉ @TeleBotHelp
๐Ÿ”ง Fixed carbon.

โœŒ๐ŸปAdded ascii plugin
Syntax - .ascii as reply to an image.

ยฉ @TeleBotHelp
Which one do you prefer as .alive
Anonymous Poll
41%
Sticker along with alive
59%
Customisable alive pic
๐Ÿคง Updated updater, yes, again.

What's new
.update command now shows changelog,
.update now updates the bot to the latest version.
(thanks to @buddhhu and @ItzSjDude)

Also, small visual changes done for helper.

ยฉ @TeleBotHelp
โœŒ๐ŸปAdded Alive Picture

Since some wanted alive with sticker and some wanted alive pic, I've decided to give you the option to choose between them...

Add the var ALIVE_PIC to your heroku vars with the telegraph link to the pic to make it your alive pic, i.e, th one you get on using .alive

If you do not want the AlivePic, do not add the var, you will be having the alive with the sticker (the default one).

For help in setting ALIVE_PIC, see this

ยฉ @TeleBotHelp
Changing OS, will push updates to the master branch tomorrow.

๐Ÿ˜ขYou will have to deploy the bot again from start or follow another method (using heroku cli)

Further details will be provided tomorrow, if I'm successful ๐Ÿคง

DO NOT DEPLOY the beta branch.

ยฉ @TeleBotHelp
โ–ช๏ธ OS changed, now runs on Slim Buster.

DO NOT UPDATE THE BOTS USING .update now, FOLLOW THE BELOW STEPS FIRST

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
What you must do -
You must either deploy the bot again. Copy the config vars, delete the present app on heroku and deploy again .
โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

OR

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
Install heroku cli on your pc from here.
Open cmd/powershell
Send
heroku apps
heroku stack:set container -a
<your app name>
where, <your app name> is the name of your old heroku app.
Follow the on-screen-prompts.
After completing that, manual deploy the bot.

Note - It takes some time for heroku apps cmd to load, don't edit the cmd prompt before that ๐Ÿคง
โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

Why do these -
Added Dockerfile, fixed updater to show changelog and some small UI changes.

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
Special thanks to these people..

If you have any doubts on any steps, pls ask in the discuss group, we'll help you out.
โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

For people without a pc, you may use termux too... Follow the guide posted here.

ยฉ @TeleBotHelp
Current PM-Permit is buggy, can I remove that and add a simple one?
(Without the menu)
Anonymous Poll
72%
Yes, please ๐Ÿ˜…
28%
Nope, menu is needed.
๐Ÿ’ซ Updates

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
Added .delpfp plugin to delete your profile pics.

Syntax -
.delpfp (number of pics to delete)

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

Added a plugin to help you manage your groups more effectively...
All details here.

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

Added a plugin to pm a person from any chat.

Syntax -
.pmto @username Message

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

Doubts/New Plugin Suggestions - @TeleBotHelpChat

ยฉ @TeleBotHelp
Plugin updates ๐Ÿ˜Œ

Added imdb plugin to search movies.
Syntax -
.imdb movie_name

Improved GBan plugin to be able to ban from any chat by replying to user, command changed from ;gban and ;ungban to .gban and .ungban

Still fixing pmpermit...

ยฉ @TeleBotHelp
โŒ Added a new plugin โŒ

Syntax -
.save (as reply to anything)

What it does - Saves the replied text/media to your log channel.

ยฉ @TeleBotHelp
Fixed images plugin, added gdrive downloader. ๐Ÿ˜

Credits here ๐Ÿ˜‚

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

Added view_counter plugin. to see how many people have seen a message that you sent. โœŒ๐Ÿป

For this to work, you have to make a private channel, send .get_id, copy the id and do
.set var CHANNEL_ID {copied id}

Syntax -
.frwd as reply to the text/media you want the counter for.

ยฉ @TeleBotHelp
Need plugin for banning in all feds in one go??
Anonymous Poll
89%
Yep.
11%
No need
Added thumbnail for plugins that are being sent. ๐Ÿ˜
Update using .update command.

ยฉ @TeleBotHelp
Added caption for plugins that are being sent ๐Ÿ˜–
Pls update, again ๐Ÿ˜ณ

ยฉ @TeleBotSupport
Channel photo updated
Small changes done

ยป Added Mega Downloader.
ยป Modified GBan.
ยป Reduce time taken to upload plugins.
ยป Change .usage command to show usage of all apps in your heroku.

Update using
.update now

ยฉ @TeleBotSupport
๐Ÿ’ซ Fixed the command handler in the testing2 branch of the repo.
If you would like to test it (beta test xD), pls manual deploy that branch...
It would be helpful if you could test that branch and tell me what all isn't working..

Set the var CMD_HNDLR to the value you want, present one is "."

Use of it - Invoke commands with that handler, like, if you set " you can use "alive, "ping and so on.
People who are interested in testing it, please do so and tell me what all aren't working. Only then will these be added to the main repo...

Do
.set var CMD_HNDLR \

{a symbol}
\ is must else it might not work..
Get help if you need any in @TeleBotHelpChat... Report problems, if any, there.

ยฉ @TeleBotSupport
The old video tutorial is outdated. There is a new one now...

Thanks to @InfoTel14 for making this new tutorial โค๏ธ
โ€‹โ€‹How to deploy TeleBot

Deploying to heroku

๐Ÿ‘‰ Make a heroku account from here.

๐Ÿ‘‰ Make a GitHub account (optional)

๐Ÿ‘‰ Get your APP_ID and API_HASH from here.

๐Ÿ‘‰ Get your session string from any of the below sites -

๐Ÿ”— Repl 1 ๐Ÿ”—

๐Ÿ”— Repl 2 ๐Ÿ”—

๐Ÿ”— Repl 3 ๐Ÿ”—

๐Ÿ‘‰ Make a bot using @BotFather and turn on the inline mode from bot settings.

๐Ÿ‘‰ Make a private group on telegram, make chat history for new members visible (to make it a supergroup). Now add @TeleBotHelpBot to it and send /id to get the group id, for
PRIVATE_GROUP_BOT_API_ID
and
PRIVATE_GROUP_ID

๐Ÿ‘‰ Now go to the deploy page in heroku and follow the on-screen-steps.
Watch this video tutorial for help regarding deploying.

๐Ÿ‘‰ More help available in @TeleBotHelpChat

๐Ÿ‘‰ Know how to view logs - @telesupport_ch

๐Ÿค” All variables and their explanations can be found here.