Skip to content

Latest commit

 

History

History
88 lines (62 loc) · 4.68 KB

README.md

File metadata and controls

88 lines (62 loc) · 4.68 KB

Pyro Snippets - Enhancing Developer Experience in Telegram Bot Development

Elevate your Pyrogram Developer Experience with PyroSnippets!

logo

Version Downloads Rating

Welcome to Pyro Snippets, an extension for Visual Studio Code that enhances your development with Pyrogram by providing code snippets for common tasks and features.

Features

demo-video

  • Code Snippets: Quickly insert code templates for creating Pyrogram clients, handling commands, and managing inline buttons.
  • Enhanced Productivity: Reduce boilerplate code and focus more on building your Pyrogram bots.
  • Customizable: Easily modify and expand snippets to fit your specific needs.

Usage

  1. Install the extension from the Visual Studio Code Marketplace.
  2. Open a Python project with Pyrogram.
  3. Start typing one of the predefined prefixes to activate the snippet suggestion.
  4. Select the desired snippet from the list or use the shortcut key to insert it directly.

Snippets

S.No Snippet Name Prefix Description
1 Create Bot pyroBot Create a Pyrogram bot
2 Inline Button pyroButton Create an inline button
3 Inline Button Group (2x2) pyroButtonGroup2x2 Create an inline button group (2x2)
4 Inline Button Group (2 3 2) pyroButtonGroup2_3_2 Create an inline button group (2 3 2)
5 Inline Button Group (3x3) pyroButtonGroup3x3 Create an inline button group (3x3)
6 Callback Query Handler pyroCallbackHandler Create a callback query handler
7 Close Button pyroCloseButton Create a callback query handler for close button
8 Next Button pyroNextButton Create a callback query handler for a next button
9 Previous Button pyroPrevButton Create a callback query handler for a previous button
10 Confirm Button pyroConfirmButton Create a callback query handler for a confirm button
11 Cancel Button pyroCancelButton Create a callback query handler for a cancel button
12 Start Command Handler pyroStart Create /start command
13 Help Command Handler pyroHelp Create /help command
14 About Command Handler pyroAbout Create /about command
15 Import Data from ENV pyroENV Import API keys and tokens from environment variables
16 Welcome Message pyroWelcome Creates welcome message
17 Missing Something important? - Click here to fork and contribute!

Requirements

  • Visual Studio Code (v1.50.0 or higher)
  • Python extension for Visual Studio Code
  • Pyrogram library installed in your Python environment

Feedback

If you have any suggestions, feature requests, or issues to report, feel free to create an issue on GitHub.

License

This extension is licensed under the MIT License. See the LICENSE file for more details.


logo

Follow @bughunterbots on Telegram

Happy Coding! 🚀

Built with ❤️ by Nuhman Pk © 2024