Giter VIP home page Giter VIP logo

Comments (6)

spoofi avatar spoofi commented on May 22, 2024

Hi.
You need to write separate logic for handling such commands.
For example, remember that user sent the command /weather and after waiting following message from him for the name of the city.

from telegram.bot.

sohrablou avatar sohrablou commented on May 22, 2024

Hi,
can u send example?
please...

from telegram.bot.

spoofi avatar spoofi commented on May 22, 2024

At the moment I don't have a example.
But now I do experiments with telegram bots and for my case used this code. In context you can look for it in file
This is a simple command with parameters.

from telegram.bot.

sohrablou avatar sohrablou commented on May 22, 2024

Hi,
I did not get it.
If possible, set better examples in this regard.

thanks :)

from telegram.bot.

spoofi avatar spoofi commented on May 22, 2024

@sohrablou Please specify what kind of example you want?

  1. Command with parameters like /test param1 param2
  2. Or you want an example for command that will work in a mode of dialogue with the user:
    user: /test
    bot: enter param1
    user: hello
    bot: enter param 2
    and etc.

from telegram.bot.

miztizm avatar miztizm commented on May 22, 2024

@sohrablou Please specify what kind of example you want?

  1. Command with parameters like /test param1 param2
  2. Or you want an example for command that will work in a mode of dialogue with the user:
    user: /test
    bot: enter param1
    user: hello
    bot: enter param 2
    and etc.

im searching for the second exemple

from telegram.bot.

Related Issues (20)

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.