Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SpEcHiDe/PyroGramBot
pluggable Telegram Bot based on Pyrogram
https://github.com/SpEcHiDe/PyroGramBot
bot download ffmpeg gdrive group management mtproto pluggable powerful pyrogram telegram upload
Last synced: 6 days ago
JSON representation
pluggable Telegram Bot based on Pyrogram
- Host: GitHub
- URL: https://github.com/SpEcHiDe/PyroGramBot
- Owner: SpEcHiDe
- License: agpl-3.0
- Created: 2019-08-04T04:06:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-25T03:27:12.000Z (12 days ago)
- Last Synced: 2024-10-26T17:06:13.825Z (10 days ago)
- Topics: bot, download, ffmpeg, gdrive, group, management, mtproto, pluggable, powerful, pyrogram, telegram, upload
- Language: Python
- Homepage: https://telegram.dog/OwneRoBot
- Size: 395 KB
- Stars: 238
- Watchers: 13
- Forks: 302
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Bot ๐ฅ๐ค
A Telegram Bot ~~[still WIP, not stable]~~ based on [Pyrogram](https://github.com/pyrogram/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](./COPYING) for more details.
## installing
## ENVironment VARiables
#### Mandatory Environment Variables
* `TG_BOT_TOKEN_BF_HER`: Create a bot using [@BotFather](https://telegram.dog/BotFather), and get the Telegram API token.
* `APP_ID`
* `API_HASH`: Get these two values from [my.telegram.org/apps](https://my.telegram.org/apps).
* N.B.: if Telegram is blocked by your ISP, try our [Telegram bot](https://telegram.dog/UseTGXBot) 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](https://github.com/SpEcHiDe/PyroGramBot/wiki/How-to-Install-Database-%3F). **[** __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](https://t.me/UniBorg/48) for Instructions on Setting up Google Drive.
* `G_DRIVE_CLIENT_SECRET`: check [the Telegram Channel](https://t.me/UniBorg/48) 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](https://useTGBot.t.me)
## Credits, and Thanks to
* [Dan Tรจs](https://telegram.dog/haskell) for his [Pyrogram Library](https://github.com/pyrogram/pyrogram)
* [Colin Shark](https://telegram.dog/ColinShark) for his [PyroBot](https://git.colinshark.de/PyroBot/PyroBot)
* [![CopyLeft](https://telegra.ph/file/b514ed14d994557a724cb.jpg)](https://telegra.ph/file/fab1017e21c42a5c1e613.mp4 "CopyLeft Credit Video")