Get Information about new order in telegram
- Example: 512345678:sGEiD_e124Arp0akAapbS6PFiVkMbi6dk12rc4
How to Find a Telegram Chat ID
How config module?
Admin-> Stores-> Configuration-> Sales-> Checkout-> Telegram Integration
Insert Access Token & Chat ID
First: You need to start the recently created chat
That's All!
After each order you will receive a message to Telegram
Example:
New order from USERNAME, Product: ProductName QTY: 6 Price: 5, Product: ProductName QTY: 3 Price: 44
All errors you can find in var/log/system.log
main.CRITICAL: Telegram connection is wrong. Warning: file_get_contents(https://api.telegram.org/botEXAMPLE:EXAMPLE/sendMessage?chat_id=123123123&text=New+Order%3A+%D0%92%D0%BE%D0%BD%D1%8E%D1%87%D0%BA%D0%B0%2C+Items%3A++Product%3A+FFFF2222222+QTY%3A+10+Price%3A+44+Product%3A+wer+QTY%3A+10+Price%3A+5.+Price%3A+490): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in app/code/PeachCode/Telegram/Observer/TelegramObserver.php on line 80 [] []