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.
screenshot 1 | screenshot 2 |
---|---|
ℹ️ Important information.
- Create account on GitHub (if you haven't for only this script. i will recomment not to use personal account.).
- Create account on Heroku (if you haven't).
- Create account on Telegram (if you haven't).
- 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.
- 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.
- Create repository on GitHub and create 4 empty files in the same repository named as instagram.txt, youtube.txt, notes.txt and other.txt.
- Create GitHub access token. Check how to create GitHub access token. Now save GitHub access token.
- 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
Steps to use.
-
Just git clone this repository.
git clone https://github.com/whitehatjrchintu/githubnotestelegrambot.git
cd githubnotestelegrambot
-
Or download this repository as zip.
- Now create repository (i will recommend to create private repository.) in your github account and upload all files.
-
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
- 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.
- Finally go to your bot, click start button and save your notes.
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 |