Closed
Description
Required Information
- PHP version: PHP 5.6.30
- PHP Telegram Bot version: 0.40.0
- Using MySQL database: yes
- Update Method: getUpdates
- Self-signed certificate:
- RAW update (if available):
Expected behaviour
- Forwarding message from channel.
- Bot processing message.
- Bot checking next update with incremented offset
Actual behaviour
- Forwarding message from channel.
- Bot processing message.
- Bot checking next update with same offset.
- Bot processing same message.
- Bot checking next update with same offset.
...
infinity loop why bot will get any new message (not forwarded from channel!)
Steps to reproduce
- Run getUpdatesCLI.php
- Create chat with you bot
- Join any channel (not a group!)
- Forward any message from channel to you bot
- Check logs… you will see:
"2017-03-07 01:21:36 - Processed 1 updates
2017-03-07 01:21:36 - Processed 1 updates
2017-03-07 01:21:36 - Processed 1 updates
2017-03-07 01:21:36 - Processed 1 updates"
Extra details
I have not enough time to find how to fix the problem but its looks like it something around DB::insertMessageRequest and DB::insertTelegramUpdate. It’s looks like telegram-bot not inserting info about forwarded message to the telegram_update table in the DB because violating constrain message_ibfk_4 (but all operation making with INSERT IGNORE and this why everything happining in «silence»)
Metadata
Metadata
Assignees
Labels
No labels