• Stars
    star
    237
  • Rank 169,885 (Top 4 %)
  • Language
    Python
  • License
    GNU Affero Genera...
  • Created over 5 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

pluggable Telegram Bot based on Pyrogram

Bot πŸ”₯πŸ€–

A Telegram Bot [still WIP, not stable] based on Pyrogram

This was an attempt to learn bot development using Pyrogram. I had made several mistakes (or, bad design decisions), in the creation of this bot. So, ✌️ please do not judge theis codes.

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 COPYING for more details.

installing

The Easy Way

Deploy

ENVironment VARiables

Mandatory Environment Variables

  • TG_BOT_TOKEN_BF_HER: Create a bot using @BotFather, and get the Telegram API token.

  • APP_ID

  • API_HASH: Get these two values from my.telegram.org/apps.

    • N.B.: if Telegram is blocked by your ISP, try our Telegram bot to get the IDs.

Optional Environment Variables

  • ENV: set this to ANYTHING if you want to use ENVIRON mode.

  • COMMAND_HAND_LER: the default value is /, which is the recommended value. Change this only if you know what you are doing.

  • TMP_DOWNLOAD_DIRECTORY: the path (as a string) to store the temporary files, which are used by some of the plugins.

  • DATABASE_URL: if you are using Heroku, this value is automatically filled by the Postgres Plugin. if you are not using Heroku, Read the guide on how to Install Database?, in the Wiki. [ to be deprecated ]

  • TELEGRAM_URL: create a Telegram Channel / Super Group, with you robot as administrator, and add the channel id as an integer in this variable.

  • G_DRIVE_CLIENT_ID: check the Telegram Channel for Instructions on Setting up Google Drive.

  • G_DRIVE_CLIENT_SECRET: check the Telegram Channel for Instructions on Setting up Google Drive.

  • OWNER_ID: this is not used currently, and might be used in the future.

  • SUDO_USERS: The Telegram user_ids who should be allowed to use the sensitive features of the robot.

  • TG_IRU_S_M_ID: this is used for the sretlif plugins.

  • WARN_DATA_ID: this is used for the warns plugins.

  • WARN_SETTINGS_ID: this is used for the warns plugins.

  • A_PIN_MESSAGE_ID: this is used for the antichannelpin plugins.

  • USE_TG_BOT_APP_ID: this is used for the google search plugin. you can get it by sending /getapi to @useTGBot

Credits, and Thanks to

More Repositories

1

PublicLeech

can be found on Telegram as https://telegram.dog/PublicLeechGroup
Python
424
star
2

AnyDLBot

An Open Source GPLv3 All-In-One Telegram Bot
Python
380
star
3

NoPMsBot

https://telegram.dog/ContactMeRobot
Python
131
star
4

MyTelegramOrgRoBot

Python
110
star
5

UploadGram

https://pypi.org/project/uploadgram/
Python
102
star
6

IMDbOT

The Telegram IMDbOT
90
star
7

TerminalBot

A GNU/Linux Terminal inside @Telegram
83
star
8

DeleteMessagesRoBot

Watch https://youtu.be/RHQ-RP4_pKY, or Read the Code to know how to use this Telegram Bot.
Python
76
star
9

FilesBot

PHP
75
star
10

PlayAStream

Python
65
star
11

PublicStream

Instant Stream Link Generator of Telegram Files, powered by @MadeLineProto
PHP
63
star
12

APK-DeCompiler

Program to get the source code from APK file
Shell
36
star
13

SessionMakerBot

Telethon Only Version can be found on https://gitlab.com/spechide/GetUniBorgBot
Python
24
star
14

scripts

Batchfile
24
star
15

JsonBot

https://t.me/useTGxBot - Bot to Display telegram-bot-api JSON of all sent messages
TypeScript
22
star
16

Mp4ToWebmBot

Open Source Bot ❀️ with Limited Functionality of @AnimatedStickersRoBot πŸ”₯
Shell
20
star
17

subtle-search-er

yet another subtitle bot, inspired by https://isubtitles.org/ and https://telegram.dog/GetSubtitleBot
19
star
18

HaR0Ku

https://t.me/UniBorg
Dockerfile
15
star
19

gDriveTelegramManager

a Telegram bot to Shorten your Google Drive link, and share it with your friends!
15
star
20

ShortLinkBot

https://telegram.dog/GPLinksBot
12
star
21

Zedge-Images-Bot

can be found on telegram as https://t.me/ZedgeImagesBot
PHP
10
star
22

WhatsAppTransmitter

[OUTDATED] an android application to share any kind of file via Whatsapp
Java
9
star
23

IDNWB

https://t.me/c/1195659882/19121
TypeScript
7
star
24

PyroJsonDumpBot

available on Telegram as: https://telegram.dog/PyroJsonDumpBot
Python
6
star
25

SpEcHiDe

https://www.shrimadhavuk.me
6
star
26

ButtonHTMLBot

https://ButtonHTMLBot.t.me
TypeScript
6
star
27

SEM

Smart Water Meter : Internship Project at ICFOSS
PHP
6
star
28

trolls.whatapp.me

a webpage for the FaceBook page ==> https://fb.me/csenitctrolls/
JavaScript
5
star
29

CheckRestrictionsBot

https://telegram.dog/CheckRestrictionsBot
5
star
30

whispering-boils

Shell
5
star
31

LearnAndroid

a public repository for all useless android applications without any specific purpose
4
star
32

spechide.github.io

[OUTDATED] My Portfolio Page
HTML
4
star
33

nalanda_news

a web application to display newsfeeds in an Android TV
CSS
3
star
34

20170315_ToSudoOrNotToSudo

an example repository for something completely irrelevant
Python
3
star
35

PnE

an internship project done for pencilanderaser enterprises. http://keito.in/
CSS
3
star
36

MatrixJSONBot

Available as https://matrix.to/#/@ShowJsonBot:matrix.org
Python
2
star
37

pagal-panti

2
star
38

FxOS_Android

a firefox os web application to simulate firefox os
JavaScript
2
star
39

search_template

a googol template
CSS
2
star
40

ryportbot

TypeScript
1
star
41

github-for-developers-8

part of the course 'https://learn.wheelhouse.io' by GitHub
1
star
42

github-for-developers-7

part of the course 'https://learn.wheelhouse.io' by GitHub
1
star