Skip to content
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

add: telegram bot setup with grammy lib #78

Closed

Conversation

MaheshtheDev
Copy link
Contributor

@MaheshtheDev MaheshtheDev commented Jun 22, 2024

Summary

This pull request adds configuration and implementation for setting up a Telegram bot using the 'grammy' library.

Details

  • Introduces import statements for the 'Bot' and 'webhookCallback' from the 'grammy' library.
  • Defines 'runtime' as 'edge'.
  • Retrieves the Telegram bot token from the environment variable 'TELEGRAM_BOT_TOKEN'.
  • Initializes a new bot instance using the retrieved token.
  • Defines a command 'start' to handle the start command and greet the user.
  • Adds a message handler to respond to any message with a default reply.
  • Exports the 'POST' method as a webhook callback for the bot.

New Features

  • Integration of 'grammy' library for creating a Telegram bot.
  • Implementation of start command handling to greet users.

Refactoring Details

  • No specific refactoring mentioned in the diff.

✨ Generated with love by Kaizen ❤️

Original Description None

Copy link

kaizen-bot bot commented Jun 22, 2024

Code Review

All Clear: This PR is ready to merge! 👍

✨ Generated with love by Kaizen ❤️

@Dhravya Dhravya marked this pull request as draft June 22, 2024 23:14
@Dhravya
Copy link
Owner

Dhravya commented Jun 22, 2024

Alright, this is pretty nice. need to add authentication. do you know a way? i can try figuring it out

@Dhravya
Copy link
Owner

Dhravya commented Jun 24, 2024

Closing in favor of #80

@Dhravya Dhravya closed this Jun 24, 2024
@MaheshtheDev MaheshtheDev deleted the feat/telegram-api branch July 4, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants