Администраторы группы

  • Аватар

Модераторы группы

  • Аватар

Интеграция Vtiger CRM

Открытая группа активность: 3 мес., 3 нед. назад

Обсуждаем вопросы использования интеграции SalesPlatform Vtiger CRM с другими системами: Asterisk, 1С и др., а также использование Клиентского портала.

Уведомления в Telegram (записей: 28)

← Форум группы   Все форумы
  • Аватар Марат - 3 г., 1 мес. назад:

    Всем привет!

    Кто-нибудь делал уведомления в телеграм? Хотя бы Задачи и События. Очень не хватает подобной функции.

    Почта не всегда оперативно просматривается, а всплывающие окна видишь только если находишься на странице с црм.

  • Аватар grousso - 3 г. назад:

    You can send a telegram chat message as a sms message if you configure an sms provider using the telegram api.

    I made a telegram bot and I can send messages from vtiger if I know the «chat id» of the recipient

  • Аватар Марат - 3 г. назад:

    Could you share the configuration files? Telegram bot is not a problem, but what to do next I do not quite understand.

  • Аватар grousso - 3 г. назад:

    Of course, add modules/SMSNotifier/providers/telegram.php file and copy inside this

    https://pastebin.com/raw/U6sjSrYr

    Change ‘bot0000000000:yourtoken’
    With your bot number and token, take the telegram chat id of your recipient and use it as telephone number.

  • Аватар Марат - 3 г. назад:

    Great! I’ll do it and report the results. Is it possible to use two providers? I already have one provider configured for sending SMS messages. It would be great to use telegram for notifications about new tasks, and SMS messages for clients.

  • Аватар grousso - 3 г. назад:

    Its possible to make a provider that checks the number of the recipient. If the number starts for example with +3069 (Greek mobile phones) then use the sms api. If not use the telegram api.

  • Аватар Марат - 3 г. назад:

    When adding a new SMS configuration, crm requires me to specify the user, password, and from whom the message will be sent. What data should I enter here? I registered my bot’s token in the configuration file, but nothing is working yet, and no messages are sent.

  • Аватар grousso - 3 г. назад:

    add some shample value to these fields, it doesnt matter., we can continue the discuss in telegram?

  • Аватар Марат - 3 г. назад:

    In the list of SMS notifications, I see that messages are being created and the handler is working well. But if you look at the status of the message, we see this inscription:
    All numbers for sending SMS are empty. The message was not sent.

  • Аватар Марат - 3 г. назад:

    Спасибо grousso за помощь! Уведомления в Телеграм теперь отлично работают.

  • Аватар Алексей - 2 г., 11 мес. назад:

    Марат, а как избавились от ошибки «All numbers for sending SMS are empty. The message was not sent»?

  • Аватар Марат - 2 г., 11 мес. назад:

    Насколько помню, такая ошибка у меня возникала из-за неправильного конфига – SERVICE_URI неверно указал. В остальном все заработало сходу.

    В качестве ID чатов телеграм использую поле «Другой тел.» в карточке пользователя, просто переименовал его в Telegram Chat ID.

  • Аватар grousso - 2 г., 11 мес. назад:

    The wrong at your configuration was that you didn’t keep the word ‘bot’

    The right configuration is ‘bot’ and after the number of the bot without spaces.

  • Аватар Алексей - 2 г., 11 мес. назад:

    I still have the error. I entered ‘bot’ before token but got the same.

    case self::SERVICE_AUTH : return self::SERVICE_URI . ‘bot898 …/sendMessage’ (the same ending ‘sendMessage’ in AUTH and SEND case – is it right?)

    I used my user ID @BorovkovAB with and without ‘@’. I put it to contact and send SMS to the ‘number’. But its response is the same: ‘ numbers are empty’.

  • Аватар grousso - 2 г., 11 мес. назад:

    You should not send to user id.

    You should find the chat id and send it there.

    just send the /my_id command to telegram bot @get_id_bot and you will get your chat id