peachcode / telegram-magento
Magento 与 Telegram
dev-revert-2-composer-package
2023-02-18 11:57 UTC
Requires
- php: >=7.4.0
This package is auto-updated.
Last update: 2024-10-01 00:10:58 UTC
README
在 Telegram 中获取新订单信息
- 例如:512345678:sGEiD_e124Arp0akAapbS6PFiVkMbi6dk12rc4
如何找到 Telegram 聊天 ID
如何配置模块?
管理界面->商店->配置->销售->结账->Telegram 集成
插入 访问令牌 和 聊天 ID
首先:您需要启动最近创建的聊天
这就完了!
在每次订单后,您将在 Telegram 收到消息
示例
New order from USERNAME, Product: ProductName QTY: 6 Price: 5, Product: ProductName QTY: 3 Price: 44
所有错误您都可以在 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 [] []