Skip to content

whitehatjrchintu/githubnotestelegrambot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github notes telegram bot

With this telegram bot you can create notes on GitHub. You can even read GitHub uploaded files. This TG bot is heroku based. Now before you continue i recommend you to read Prerequisites section and What this bot can do? section.

Example:-

screenshot 1 screenshot 2
photo_2021-10-20_15-46-43 photo_2021-10-20_15-46-51

Prerequisites:-

ℹ️ Important information.
  1. Create account on GitHub (if you haven't for only this script. i will recomment not to use personal account.).
  2. Create account on Heroku (if you haven't).
  3. Create account on Telegram (if you haven't).
  4. Go to my.telegram.org/auth, login and create app. Check how to create app on telegram. Now save api_id and api_hash which you got from my.telegram.org/auth.
  5. Create a telegram bot by using Bot Father. Check how to create bot in telegram. Bot Father will give you bot token save that token.
  6. Create repository on GitHub and create 4 empty files in the same repository named as instagram.txt, youtube.txt, notes.txt and other.txt.
  7. Create GitHub access token. Check how to create GitHub access token. Now save GitHub access token.
  8. So now you have saved nine things:-
    • api_id
    • api_hash
    • bot_token
    • github_access_token
    • github_repository_link
    • instagram_file_from_same_repository
    • youtube_file_from_same_repository
    • notes_file_from_same_repository
    • other_file_from_same_repository

How to use?

Steps to use.

Step 1:

  • Just git clone this repository.

    git clone https://github.com/whitehatjrchintu/githubnotestelegrambot.git

    cd githubnotestelegrambot

  • Or download this repository as zip.

Step 2:

  • Now create repository (i will recommend to create private repository.) in your github account and upload all files.

Step 3:

  • Copy your github repository's link and paste after ?template= in this link https://www.heroku.com/deploy/?template=. Like this:-

    https://www.heroku.com/deploy/?template=https://github.com/whitehatjrchintu/githubnotestelegrambot

Step 5:

  • Now enter App name in app_name and api_id, api_hash, bot_token, github_access_token, github_repository_link, instagram_file_from_same_repository, youtube_file_from_same_repository, notes_file_from_same_repository and other_file_from_same_repository which you saved/did in above steps, in respective asked field. Then click Deploy app.

Step 6:

  • Finally go to your bot, click start button and save your notes.

What this bot can do?

List of commands
commands mean
#ls list files that are in your github current repository.
#read read a particular file which is available in your current repository. like:- #read notes.txt
#get download files that are in your github current repository. like:- #get notes.txt
#youtube or youtube urls send text with #youtube command or youtube urls and it will save that/those text/urls in your current repository's youtube.txt.
#insta or instagram urls send text with #insta command or instagram urls and it will save that/those text/urls in your current repository's instagram.txt.
#other text send a simple text and it will save that text into other.txt. like:- #other sample_text
send a txt file send a txt file and it will copy that txt file's content into notes.txt

If you found any mistake or have any suggestion let me know i will correct/apply that.

Meant for educational purpose only. I am not responsible if github or telegram block your account.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages