EduuRobot Telegram bot source code.

Overview

EduuRobot

License Codacy Crowdin Black Telegram Channel Telegram Chat

A multipurpose Telegram Bot made with Pyrogram and asynchronous programming.

Requirements

  • Python 3.6+
  • An Unix-like operating system (Running on Windows isn't 100% supported. In case you find any issues inside Windows, please file an issue)

Setup

  1. Create a virtualenv (This step is optional, but highly recommended to avoid dependency conflicts)
    • python3 -m venv .venv (You don't need to run it again)
    • . .venv/bin/activate (You must run this every time you open the project in a new shell)
  2. Install the required modules from the requirements.txt with pip3 install -Ur requirements.txt.
  3. Go to https://my.telegram.org/apps and create a new app.
  4. Create a new config.py file from the config.py.example file (cp eduu/config.py.example eduu/config.py).
  5. Place your token, IDs and api keys to your config.py file.

Running

  • To run the bot you just need to run python3 -m eduu. In case you installed from a virtualenv, run . .venv/bin/activate before this.
  • Running it on screen or tmux is highly recommended if you want to keep the bot running on a server.

Note

If you find any bugs/issues with the bot you have three options:

  • Create a new issue in our GitHub describing the issue.
  • Send the /bug command to bot's chat describing the issue.
  • If you know how to fix the issue, fork our repo and open up a pull request.

Translations

All translations must be done in our Crowdin project. Direct pull requests will be closed.

We only accept pull requests for source language changes (currently en-GB).

Special thanks

  • @Halokv: Arabic translation
  • @SGANoud: Dutch translation
  • @iiiiii1wepfj: Hebrew translation
  • @HafitzSetya: Indonesian translation
  • @Pato05: Italian translation
  • @Quiec: Russian and Turkish translations
  • And many other people I couldn't list here.

©2021 - AmanoTeam™

Comments
  • Eduu code reorganized for package format

    Eduu code reorganized for package format

    I did this reorganization using Black and Isort and at Alisson's request, I did not test exactly everything but it seems to me to be all working ~~, all GitHub workflows will fail because the location of the version.txt has been changed then Alisson should change the workflow configuration file~~.

    opened by HitaloM 6
  • Bump gpytranslate from 0.3.1 to 1.0.2

    Bump gpytranslate from 0.3.1 to 1.0.2

    Bumps gpytranslate from 0.3.1 to 1.0.2.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 6
  • treewide: numerous improvements and added aiosqlite

    treewide: numerous improvements and added aiosqlite

    General improvements

    I've made some general improvements, but it takes deeper testing, I've tested everything and apparently it works as it should.

    • Using the aiosqlite library for the database
    • Using custom pyrogram client for better organization
    • Added logs
    opened by HitaloM 5
  • Changed API in print cmd

    Changed API in print cmd

    What did I change?

    1. File: eduu/plugins/prints.py (here)
    2. prints function in that file.
    3. added function cssworker_url in the file.

    Signed-off-by: Aliwoto <[email protected]>

    opened by ALiwoto 3
  • Rework English strings

    Rework English strings

    The purpose of this pull request is to track the upcoming changes to strings to make them more consistent and better:

    • [x] Remove trailing whitespaces from line start and end of lines.
    • [x] Remove emojis from non keyboard strings, since we don't use emojis there (With some exceptions).
    • [x] Remove ( ) from help strings (E.g.: /setwarnsaction (ban/mute/kick)), since that may lead the user to wrongly use them.
    • [x] Remove trailing whitespaces before punctuation characters.
    • [x] Add punctuation at the end of some strings.
    • [ ] "Rewrite" strings and fix grammar issues using a spell checker.
    • [ ] Rename string keys with more meaningful and short names.
    • [ ] Other misc changes.

    Any additional suggestions are welcome.

    opened by alissonlauffer 3
  • build(deps): bump yt-dlp from 2022.11.11 to 2023.1.2

    build(deps): bump yt-dlp from 2022.11.11 to 2023.1.2

    Bumps yt-dlp from 2022.11.11 to 2023.1.2.

    Release notes

    Sourced from yt-dlp's releases.

    yt-dlp 2023.01.02

    A description of the various files are in the README


    • Improve plugin architecture by Grub4K, coletdjnz, flashdagger, pukkandan
      • Plugins can be loaded in any distribution of yt-dlp (binary, pip, source, etc.) and can be distributed and installed as packages. See the readme for more information
    • Add --compat-options 2021,2022
      • This allows devs to change defaults and make other potentially breaking changes more easily. If you need everything to work exactly as-is, put Use --compat 2022 in your config to guard against future compat changes.
    • [downloader/aria2c] Native progress for aria2c via RPC by Lesmiscore, pukkandan
    • Merge youtube-dl: Upto commit/195f22f by Grub4k, pukkandan
    • Add pre-processor stage video
    • Let --parse/replace-in-metadata run at any post-processing stage
    • Add --enable-file-urls by coletdjnz
    • Add new field aspect_ratio
    • Add ac4 to known codecs
    • Add weba to known extensions
    • [FFmpegVideoConvertor] Add gif to --recode-video
    • Add message when there are no subtitles/thumbnails
    • Deprioritize HEVC-over-FLV formats by Lesmiscore
    • Make early reject of --match-filter stricter
    • Fix --cookies-from-browser CLI parsing
    • Fix original_url in playlists
    • Fix bug in writing playlist info-json
    • Fix bugs in PlaylistEntries
    • [downloader/ffmpeg] Fix headers for video+audio formats by Grub4K, bashonly
    • [extractor] Add a way to distinguish IEs that returns only videos
    • [extractor] Implement universal format sorting and deprecate _sort_formats
    • [extractor] Let _extract_format functions obey --ignore-no-formats
    • [extractor/generic] Add fragment_query extractor arg for DASH and HLS by bashonly, pukkandan
    • [extractor/generic] Decode unicode-escaped embed URLs by bashonly
    • [extractor/generic] Don't report redirect to https
    • [extractor/generic] Fix JSON LD manifest extraction by bashonly, pukkandan
    • [extractor/generic] Use Accept-Encoding: identity for initial request by coletdjnz
    • [FormatSort] Add mov to vext
    • [jsinterp] Escape regex that looks like nested set
    • [webvtt] Handle premature EOF by flashdagger
    • [utils] classproperty: Add cache support
    • [utils] get_exe_version: Detect broken executables by dirkf, pukkandan
    • [utils] js_to_json: Fix bug in f55523c by ChillingPepper, pukkandan
    • [utils] Make ExtractorError mutable
    • [utils] Move FileDownloader.parse_bytes into utils
    • [utils] Move format sorting code into utils
    • [utils] windows_enable_vt_mode: Proper implementation by Grub4K
    • [update] Workaround #5632
    • [docs] Improvements
    • [cleanup] Misc fixes and cleanup

    ... (truncated)

    Changelog

    Sourced from yt-dlp's changelog.

    Changelog

    2023.01.02

    • Improve plugin architecture by Grub4K, coletdjnz, flashdagger, pukkandan
      • Plugins can be loaded in any distribution of yt-dlp (binary, pip, source, etc.) and can be distributed and installed as packages. See the readme for more information
    • Add --compat-options 2021,2022
      • This allows devs to change defaults and make other potentially breaking changes more easily. If you need everything to work exactly as-is, put Use --compat 2022 in your config to guard against future compat changes.
    • [downloader/aria2c] Native progress for aria2c via RPC by Lesmiscore, pukkandan
    • Merge youtube-dl: Upto commit/195f22f by Grub4k, pukkandan
    • Add pre-processor stage video
    • Let --parse/replace-in-metadata run at any post-processing stage
    • Add --enable-file-urls by coletdjnz
    • Add new field aspect_ratio
    • Add ac4 to known codecs
    • Add weba to known extensions
    • [FFmpegVideoConvertor] Add gif to --recode-video
    • Add message when there are no subtitles/thumbnails
    • Deprioritize HEVC-over-FLV formats by Lesmiscore
    • Make early reject of --match-filter stricter
    • Fix --cookies-from-browser CLI parsing
    • Fix original_url in playlists
    • Fix bug in writing playlist info-json
    • Fix bugs in PlaylistEntries
    • [downloader/ffmpeg] Fix headers for video+audio formats by Grub4K, bashonly
    • [extractor] Add a way to distinguish IEs that returns only videos
    • [extractor] Implement universal format sorting and deprecate _sort_formats
    • [extractor] Let _extract_format functions obey --ignore-no-formats
    • [extractor/generic] Add fragment_query extractor arg for DASH and HLS by bashonly, pukkandan
    • [extractor/generic] Decode unicode-escaped embed URLs by bashonly
    • [extractor/generic] Don't report redirect to https
    • [extractor/generic] Fix JSON LD manifest extraction by bashonly, pukkandan
    • [extractor/generic] Use Accept-Encoding: identity for initial request by coletdjnz
    • [FormatSort] Add mov to vext
    • [jsinterp] Escape regex that looks like nested set
    • [webvtt] Handle premature EOF by flashdagger
    • [utils] classproperty: Add cache support
    • [utils] get_exe_version: Detect broken executables by dirkf, pukkandan
    • [utils] js_to_json: Fix bug in f55523c by ChillingPepper, pukkandan

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
Owner
Amano Team
We are a team with some developers.
Amano Team
null 1 Feb 18, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram VCVideoPlayBot An Telegram Bot By @ZauteKm To Stream Videos in Telegram Voice Chat. NOTE: Make sure you have started a VoiceChat in your Grou

Zaute 20 Oct 21, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

SUBIN 449 Dec 27, 2022
An Advanced Telegram Bot to Play Radio & Music in Voice Chat. This is Also The Source Code of The Bot Which is Being Used For Playing Radio in @AsmSafone Channel ❤️

Telegram Radio Player V3 An Advanced Telegram Bot to Play Nonstop Radio/Music/YouTube Live in Channel or Group Voice Chats. This is also the source co

SAF ONE 421 Jan 5, 2023
This is telegram bot to generate string session for using user bots. You can see live bot in https://telegram.dog/string_session_Nsbot

TG String Session Generate Pyrogram String Session Using this bot. Demo Bot: Configs: API_HASH Get from Here. API_ID Get from Here. BOT_TOKEN Telegram

Anonymous 27 Oct 28, 2022
A telegram bot which can show you the status of telegram bot

BotStatus-Ts-Bot An open source telegram Bot Status bot For demo you can check here The status is updated in every 1 hour About Bot This is a Bot stat

Ts_Bots 8 Nov 17, 2022
Telegram PHub Bot using ARQ Api and Pyrogram. This Bot can Download and Send PHub HQ videos in Telegram using ARQ API.

Tg_PHub_Bot Telegram PHub Bot using ARQ Api and Pyrogram. This Bot can Download and Send PHub HQ videos in Telegram using ARQ API. OS Support All linu

TheProgrammerCat 13 Oct 21, 2022
veez music bot is a telegram music bot project, allow you to play music on voice chat group telegram.

?? Veez Music Bot Music bot for playing music on telegram voice chat group. Requirements ?? FFmpeg NodeJS nodesource.com Python 3.7+ PyTgCalls ?? Get

levina 143 Jun 19, 2022
A simple telegram voting bot based on the python-telegram-bot api.

A simple telegram voting bot based on the python-telegram-bot api. *To make it more easy to use, I might make a C++ code in the future so you don't ha

null 3 Sep 13, 2021
Telegram bot implementing Lex Arcana using python-telegram-bot library.

Lex Arcana Telegram Bot ?? Telegram bot implementing Lex Arcana using python-telegram-bot library. This bot was evaluated for the course "Computer Eng

Nicolò Sonnino 6 Jun 22, 2022
A Telegram Filter Bot, Support Unlimited Filter. Also, The Bot can auto-filter telegram File | video

A Telegram Filter Bot, Support Unlimited Filter. Also, The Bot can auto-filter telegram File | video

Hash Minner 3 Nov 27, 2021
A Powerful telegram giveawayz bot based on the python-telegram-bot API

GiveawayZ Bot A Powerful telegram giveawayz bot based on the python-telegram-bot API. Powered by Team Zyntax and Team DFX Developed by @Zycho-Dev A pr

Zycho #AFK 5 Jul 31, 2022
Asad Alexa VC Bot Is A Telegram Bot Project That's Allow You To Play Audio And Video Music On Telegram Voice Chat Group.

Asad Alexa VC Bot Is A Telegram Bot Project That's Allow You To Play Audio And Video Music On Telegram Voice Chat Group.

Dr Asad Ali 6 Jun 20, 2022
A telegram bot script for generating session string using pyrogram and telethon on Telegram bot

String-session-Bot Telegram Bot to generate Pyrogram and Telethon String Session. A star ⭐ from you means a lot to us! Usage Deploy to Heroku Tap on a

Wahyusaputra 8 Oct 28, 2022
Video Bot: an Advanced Telegram Bot that's allow you to play Video & Music on Telegram Group Video Chat

Video Bot is an Advanced Telegram Bot that's allow you to play Video & Music on

null 5 Jan 26, 2022
Web-music-bot - A telegram bot which get a *site Url* and sends all songs contain in the Url to telegram

web music bot this is a telegram bot which get a site Url and sends all songs co

Arya Shabane 4 Apr 2, 2022
Telegram bot for logistic - Telegram bot for logistic

Демонстрационный телеграм-бот для нужд транспортной компании Цель проекта Реализ

M1chigun 1 Feb 5, 2022
A simple Telegram bot that analyses a given word, built with python-telegram-bot

Telegram Word Bot A simple Telegram bot that analyses a given word, built with python-telegram-bot. The bot is fairly useless - unless you often need

Chris N 2 Jul 14, 2022