Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 931 Bytes

README.md

File metadata and controls

10 lines (10 loc) · 931 Bytes

Mpesa telegram bot

This is a bot that implements lipa na mpesa service by safaricom. You can test the bot here https://telegram.me/Chachazbot. This code is implemented using normal php structure with Guzzle and curl to send and receive responses to and from MPESA API and Telegram.

Setup

To use this code, ensure that you have bot registered and set up correctly. You can contact @BotFather for that.

Usage

This bot uses telegrams web hooks to get updates from users. Ensure that you register webHook to point to your code's location address

NB

This bot uses safaricom sandbox account. So if you try to make a transaction and it delays or fails to respond, then do not freak out since that is how sanbox services work. Maybe you should contact safaricom to get a live account.

Contact

If you need advanced bot developments for any bussiness,ecommerce,news,education or just a simple help, my email is vinukoech@gmail.com