[THIS THING ISN'T WORKING RIGHT NOW CORRECTLY (fbchat module issue). USE IT IF YOU CAN DEBUG AND LET ME KNOW IF YOU CAN.]
Reply to Messenger messages from Telegram.
Connect your Facebook Messenger to Telegram easily. Because Telegram is better, secure, simple and fun.
Follow these instructions carefully to get this script up and running.
The things you need to get this script running:
- Make sure Python 2 is installed in your machine.
- Create bot in Telegram with @botfather and get the Bot Token.
- Use '/setinline' and '/setinlinefeedback' command in @botfather conversation one after another and follow their instructions to enable InlineQuery for your telegram bot.
- Get your Chat ID. See instructions here.
- You also need a Facebook account, of course! 😉
Please place your Chat ID and Bot Token in the script. No need to add facebook password in the script. You'll be prompted to enter password after running the script. Because of cookie usage, you'll not need to enter password next time unless you change your Facebook password or your IP address is changed.
- Clone this repository in your server/computer:
git clone https://github.com/MS-Jahan/pyMessToTele
- Change directory to project folder:
cd pyMessToTele
- Install essential modules:
python2 -m pip install telepot fbchat getpass pickle --user
- Make changes in your script according to Before Running The Script.
- Run your script:
python2 messtotele.py
- Type your email and password when asked. Password will not be visible when typing.
- Now you will be able to receive and respond to messages from Facebook Messenger from Telegram. :-)
Run this script on Android using these instructions.
- Inline buttons.
- Send photo from Telegram to Messenger.
- Receive media (photo, video, gif, voice, sticker) from Messenger to Telegram.
- Group chat support
- Easily change current chat.
- Show Contact List of Messenger in Telegram
- Support for file attachments.
Messenger to Telegram written in NodeJs. I was inspired from my need at first and then this project!