New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telegram bot created to send messages to individual users #16
base: main
Are you sure you want to change the base?
Conversation
Changed the Readme.md by removing twilio content and how to install anaconda and how to set up telegram to get messages
README.md
Outdated
|
||
3. Now, open the link http://t.me/CowinSlotTrackerBot and click on Start. | ||
4. After successfully completing the above steps, install Anaconda using the link | ||
https://docs.anaconda.com/anaconda/install/ depending on your operating system i.e Windows, Linux, MAC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use Anaconda instead of just the link @trishh088
@@ -183,7 +183,10 @@ def TelegramBot(TOKEN, CHAT_ID, MSG): | |||
if available: | |||
msg_body = "Slots Available at {total} places.\n{available}".format(total = total_centers,available = available) | |||
print(msg_body) | |||
TelegramBot(SECRET_TOKEN,CHAT_ID,msg_body) | |||
telegram_txt = str((f'Slots Available at {total_centers} places.\n{available}')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove telegram_txt because the payload is already in msg_body @trishh088
README.md
Outdated
6. Run `docker run -it --name covin-schedule --rm covin` | ||
7. If there is a slot available in the district code you have provided, you will receive an SMS on your phone. | ||
2. Open settings.json and put in your preference | ||
Eg: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provide this as a code block => within example
@trishh088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the changes requested. Test it locally
Updated the README
A common bot has been created which a user doesn't have to set up,
all they need to do is find their telegram id, input in their district and telegram if along with the age parameter that they need and they are set to get messages directly to their mobile.
Also added on how to install Anaconda and how to run the program locally without using docker