Answer the question
In order to leave comments, you need to log in
What frameworks are there to write chat bots for vk, telegram and viber at the same time?
I want to write the logic once and use it in three messengers
Answer the question
In order to leave comments, you need to log in
There are no such.
The basic logic for all APIs is approximately the same, nothing prevents you from creating a command handler class that will receive all your commands and send them to the messengers you need. More or less like this:
>>> class Commands():
... def print_msg(self, msg):
... print(msg)
... print("".join(reversed(msg)))
...
>>> commands = Commands()
>>> commands.print_msg("foo")
foo
oof
>>>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question