-1

i am making a telegram bot and i have a question : How can i just take the numbers and deny other type to run callback with MessageHandler? my framework is python-telegram-bot

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
ex3p
  • 13
  • 2
  • 1
    Show us your code – abdusco Jul 14 '19 at 16:01
  • i think you don't need my code , its clear how can i put filter in first argument of MessageHandler to just allow the number to run callback(second argument) – ex3p Jul 14 '19 at 16:32
  • See: https://stackoverflow.com/help/minimal-reproducible-example – abdusco Jul 14 '19 at 16:33
  • 1
    It's so that we won't have to set up a whole development environment, install libraries, code an example just to solve a problem that's possibly unrelated to your setup. – abdusco Jul 14 '19 at 16:35

1 Answers1

0

I found the solution : Using this code MessageHandler(Filters.regex(r'\d+'), callback)

ex3p
  • 13
  • 2