deeppavlov / chatsky

Chatsky is a free and open-source software stack for creating chatbots, released under the terms of Apache License 2.0.
https://deeppavlov.github.io/chatsky/
Apache License 2.0
32 stars 9 forks source link

[BUG] Error with dff 0.6.4 and pyTelegramBotAPI 4.22.1 (Token Validation) #391

Closed KurochkinVasiliy closed 1 month ago

KurochkinVasiliy commented 1 month ago

Describe the bug When using dff version 0.6.4 in combination with pyTelegramBotAPI version 4.22.1, the following error occurs: Traceback (most recent call last): File "", line 1, in File "C:\Users\qramt\PycharmProjects\2024\qa-system-mvp\venv\lib\site-packages\dff\messengers\telegram__init.py", line 8, in from .messenger import TelegramMessenger File "C:\Users\qramt\PycharmProjects\2024\qa-system-mvp\venv\lib\site-packages\dff\messengers\telegram\messenger.py", line 159, in _default_messenger = TeleBot("") File "C:\Users\qramt\PycharmProjects\2024\qa-system-mvp\venv\lib\site-packages\telebot\init.py", line 196, in init__ util.validate_token(self.token) File "C:\Users\qramt\PycharmProjects\2024\qa-system-mvp\venv\lib\site-packages\telebot\util.py", line 694, in validate_token raise ValueError('Token must contain a colon') ValueError: Token must contain a colon

This issue does not occur with earlier versions of pyTelegramBotAPI.

To Reproduce pip install dff[telegram]==0.6.4 pyTelegramBotAPI==4.22.1 python -c "from dff.messengers.telegram import PollingTelegramInterface"

Expected behavior The import of the PollingTelegramInterface from dff.messengers.telegram should not raise any errors.

Desktop (please complete the following information):

RLKRo commented 1 month ago

Fixed in 0.6.5 and 0.7.2.