https://github.com/myles/telegram-myles-bot
A Telegram Bot I created about me.
https://github.com/myles/telegram-myles-bot
python telegram telegram-bot
Last synced: 5 months ago
JSON representation
A Telegram Bot I created about me.
- Host: GitHub
- URL: https://github.com/myles/telegram-myles-bot
- Owner: myles
- License: mit
- Created: 2016-08-18T15:53:38.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T20:23:08.000Z (over 3 years ago)
- Last Synced: 2025-02-09T07:41:32.641Z (over 1 year ago)
- Topics: python, telegram, telegram-bot
- Language: Python
- Homepage: https://telegram.me/MylesBot
- Size: 57.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://codeclimate.com/github/myles/telegram-myles-bot)
# [@MylesBot](https://telegram.me/MylesBot)
A Telegram Bot I created about me.
## Requirments
* [Telegram Bot](https://core.telegram.org/bots#3-how-do-i-create-a-bot)
* [Foursquare](https://developer.foursquare.com/)
* Python 2.7
## Development Environment Setup
You will need the following:
* Python 2.7
* pip
* virtualenvwrapper
* API Keys for Foursquare, Instagram, and Twitter
Start by cloning the repository:
```
$ git clone git@github.com:myles/telegram-myles-bot
$ cd ~/telegram-myles-bot
```
Create a Python virtual environment:
```
~/telegram-myles-bot $ mkvritualenv telegram-myles-bot
(telegram-myles-bot) ~/telegram-myles-bot $
```
The (telegram-myles-bot) prefix indicates that a virtual environment called
"telegram-myles-bot" is being used. Next, check that you have the correct
version of Python:
```
(telegram-myles-bot) ~/telegram-myles-bot $ python --version
Python 2.7.12
(telegram-myles-bot) ~/telegram-myles-bot $ pip --version
pip 8.0.2 from /Users/.../site-packages (python 2.7)
```
Install the project requirements:
```
(telegram-myles-bot) ~/telegram-myles-bot $ pip install -U -r requirements.txt
```
Create the configuration file at `config.json` that looks like:
```
{
"telegram": "",
"foursquare": {
"client_id": "",
"client_secret: "",
"access_token": ""
}
}
```