Giter VIP home page Giter VIP logo

nuhmanpk / pyro-snippets Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 3 MB

A Visual Studio Code extension providing ready-to-use code snippets for developing Telegram bots with Pyrogram.

Home Page: https://marketplace.visualstudio.com/items?itemName=nuhmanpk.pyrosnippets

License: MIT License

bot-development developer-experience developer-tools pyrogram pyrogram-bot snippets telegram-bot vscode-snippets

pyro-snippets's Introduction

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

pyro-snippets's People

Contributors

nuhmanpk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ashrafmdmatin41

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.