Git Product home page Git Product logo

bishalqx980 / tgbot Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 8.0 6.42 MB

This Telegram bot is built using the python-telegram-bot library and performs various tasks within Telegram.

Home Page: https://t.me/MissCiri_bot

License: GNU General Public License v3.0

Python 99.36% HTML 0.55% Shell 0.01% Batchfile 0.02% Dockerfile 0.06%
bot python python-bot python-telegram python-telegram-bot telegram-bot ai chatgpt fun group-management

tgbot's Introduction

tgbot

This Telegram bot is built using the python-telegram-bot library version 20.7 and performs various tasks within Telegram.

_check = "Does the user Starred & forked the repository?"
if _check:
    print("Thanks you โค๏ธ for sharing love & giving me inspiration...")
else:
    print("Please ๐Ÿฅบ give a star to this repo! ...And fork it if you want to work with this repo!")

>> Don't be an ungrateful person...

- Fun fact: _check will always return True! [ becasue you (gave/will give) a star & fork the repo lol ] Thanks :)

Features โœจ:

  • ChatGPT AI: Get response from ChatGPT AI
  • AI Imazine: Generate image from your prompt
  • Group Management: Manage Group as an active admin
    • Welcome user, notify when user leave
    • Moderation: ban, unban, mute, unmute, kick, kickme...
    • Antibot, etc.
    • many more feature...
  • YouTube Download Download/Search videos from YouTube
  • Movie Info: Provide movie information
  • Language Translator: Translate languages
  • Encode/Decode base64: Encode/decode base64
  • URL Shortener: Shorten URLs using shrinke.me api
  • Ping Website Ping any URL
  • Calculator: Works as everyday calculator
  • Echo: Echo your message for fun
  • Webshot Take website screenshot
  • Weather Provide weather information
  • & Much more...

More Feature coming soon...

โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข

How to Deploy ๐Ÿš€:

Setup ๐Ÿ“ฆ
  • Rename sample_config.env to config.env then fillup config.env file value's

  • BOT_TOKEN Get from https://t.me/BotFather E.g. 123456:abcdefGHIJK...

  • OWNER_ID Get from bot by /id command E.g. 2134776547

  • OWNER_USERNAME Your Username E.g. paste like bishalqx980 not @bishalqx980

  • MONGODB_URI Get from https://www.mongodb.com/

  • DB_NAME anything E.g. MissCiri_db

  • After deployment complete, don't forget to visit /bsettings


    Local Deploy ๐Ÿš€

    ----- Windows -----

    • Required python 3.11 or later
    • Open tgbot directory on cmd
    • Run on cmd pip install -r requirements.txt
    • Finally start.cmd

    ----- Linux -----

    • Required python 3.11 or later
    • Open tgbot directory on shell
    • pip install -r requirements.txt
    • Finally bash start.sh
    Render Deploy ๐Ÿš€

    Branch main

    Runtime Python 3

    Build Command pip install -r requirements.txt

    Start Command python main.py

    Instance Type Free (maybe paid)

    โš  Advanced option > Add secret file filename: config.env - file content: paste all content from sample_config.env (make sure you filled up everything)

    [ If you face anyproblem accessing Advanced option then just click on Create Web Service then from Environment > Secret Files add the config.env calues... Then restart/redeploy the web service ]

    Finally click on Create Web Service & wait few sec for deployment & Done | Enjoy ๐ŸŽ‰

    Heroku Deploy ๐Ÿš€
    • Signin/Signup on http://heroku.com/
    • Give a star โญ and fork this repo https://github.com/bishalqx980/tgbot
    • Goto your forked repo settings > General > Check โœ… Template repository
    • Come back and on the right top corner you will see a green button name Use this template, click on that and create a new private repo with these files
    • On that private repo upload your config.env file and make sure required all values are filled up
    • Then goto the private repo settings > secrets and variables > Actions
    • Click on New respository secret
      • Name: HEROKU_EMAIL
      • Secret: your_heroku_email
      • Repeat the step and add HEROKU_APP_NAME - unique name eg. tgbot007oc-bishalqx980
      • Add HEROKU_API_KEY - get from https://dashboard.heroku.com/account scroll down API Key click on Reveal button then copy the value and paste it...
    • Finally click on Actions tab from the top, select Deploy to heroku, on right side click on Run workflow > green button Run workflow
    • Now wait for deployment complete... (you can check log here https://dashboard.heroku.com/apps/HEROKU_APP_NAME/logs)
    • โš ๏ธ Add Server url from /bsettings before heroku shutdown... then restart dyno (heroku)

    Enjoy ๐Ÿพ

License

GPL-3.0
Original Creator - bishalqx980

๐“ ๐“น๐“ป๐“ธ๐“ณ๐“ฎ๐“ฌ๐“ฝ ๐“ธ๐“ฏ

 โ–„โ–„โ–„โ–„    โ–ˆโ–ˆโ–“  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  โ–ˆโ–ˆโ–‘ โ–ˆโ–ˆ  โ–„โ–„โ–„       โ–ˆโ–ˆโ–“    
โ–“โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–„ โ–“โ–ˆโ–ˆโ–’โ–’โ–ˆโ–ˆ    โ–’ โ–“โ–ˆโ–ˆโ–‘ โ–ˆโ–ˆโ–’โ–’โ–ˆโ–ˆโ–ˆโ–ˆโ–„    โ–“โ–ˆโ–ˆโ–’    
โ–’โ–ˆโ–ˆโ–’ โ–„โ–ˆโ–ˆโ–’โ–ˆโ–ˆโ–’โ–‘ โ–“โ–ˆโ–ˆโ–„   โ–’โ–ˆโ–ˆโ–€โ–€โ–ˆโ–ˆโ–‘โ–’โ–ˆโ–ˆ  โ–€โ–ˆโ–„  โ–’โ–ˆโ–ˆโ–‘    
โ–’โ–ˆโ–ˆโ–‘โ–ˆโ–€  โ–‘โ–ˆโ–ˆโ–‘  โ–’   โ–ˆโ–ˆโ–’โ–‘โ–“โ–ˆ โ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆโ–„โ–„โ–„โ–„โ–ˆโ–ˆ โ–’โ–ˆโ–ˆโ–‘    
โ–‘โ–“โ–ˆ  โ–€โ–ˆโ–“โ–‘โ–ˆโ–ˆโ–‘โ–’โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–’โ–‘โ–“โ–ˆโ–’โ–‘โ–ˆโ–ˆโ–“ โ–“โ–ˆ   โ–“โ–ˆโ–ˆโ–’โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–’
โ–‘โ–’โ–“โ–ˆโ–ˆโ–ˆโ–€โ–’โ–‘โ–“  โ–’ โ–’โ–“โ–’ โ–’ โ–‘ โ–’ โ–‘โ–‘โ–’โ–‘โ–’ โ–’โ–’   โ–“โ–’โ–ˆโ–‘โ–‘ โ–’โ–‘โ–“  โ–‘
โ–’โ–‘โ–’   โ–‘  โ–’ โ–‘โ–‘ โ–‘โ–’  โ–‘ โ–‘ โ–’ โ–‘โ–’โ–‘ โ–‘  โ–’   โ–’โ–’ โ–‘โ–‘ โ–‘ โ–’  โ–‘
 โ–‘    โ–‘  โ–’ โ–‘โ–‘  โ–‘  โ–‘   โ–‘  โ–‘โ–‘ โ–‘  โ–‘   โ–’     โ–‘ โ–‘   
 โ–‘       โ–‘        โ–‘   โ–‘  โ–‘  โ–‘      โ–‘  โ–‘    โ–‘  โ–‘
      โ–‘                                        
                            based on python-telegram-bot lib

tgbot's People

Contributors

bishalqx980 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.