Elevate your Pyrogram Developer Experience with PyroSnippets!
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.
- 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.
- Install the extension from the Visual Studio Code Marketplace.
- Open a Python project with Pyrogram.
- Start typing one of the predefined prefixes to activate the snippet suggestion.
- Select the desired snippet from the list or use the shortcut key to insert it directly.
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! |
- Visual Studio Code (v1.50.0 or higher)
- Python extension for Visual Studio Code
- Pyrogram library installed in your Python environment
If you have any suggestions, feature requests, or issues to report, feel free to create an issue on GitHub.
This extension is licensed under the MIT License. See the LICENSE file for more details.
Follow @bughunterbots on Telegram
Happy Coding! 🚀
Built with ❤️ by Nuhman Pk © 2024