Skip to content

Commit 28274cd

Browse files
committed
Added leading_character as prefix to CommandHandler
2 parents 9afe680 + b275031 commit 28274cd

File tree

102 files changed

+1848
-769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+1848
-769
lines changed

.codeclimate.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ htmlcov/
4040
.coverage
4141
.coverage.*
4242
.cache
43+
.pytest_cache
4344
nosetests.xml
4445
coverage.xml
4546
*,cover

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
args:
77
- --diff
88
- repo: git://github.com/pre-commit/pre-commit-hooks
9-
sha: 78818b90cd694c29333ba54d38f9e60b6359ccfc
9+
sha: v1.2.0
1010
hooks:
1111
- id: flake8
12-
files: ^telegram/.*\.py$
12+
exclude: ^(setup.py|docs/source/conf.py)$
1313
- repo: git://github.com/pre-commit/mirrors-pylint
1414
sha: v1.7.1
1515
hooks:

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ python:
55
- "3.5"
66
- "3.6"
77
- "pypy-5.7.1"
8-
- "pypy3.5-5.8.0"
98

109
dist: trusty
1110
sudo: false
@@ -35,4 +34,4 @@ script:
3534

3635
after_success:
3736
- coverage combine
38-
- codecov -F Travis
37+
- codecov -F Travis

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ The following wonderful people contributed directly or indirectly to this projec
5151
- `njittam <https://github.com/njittam>`_
5252
- `Noam Meltzer <https://github.com/tsnoam>`_
5353
- `Oleg Shlyazhko <https://github.com/ollmer>`_
54+
- `Oleg Sushchenko <https://github.com/feuillemorte>`_
5455
- `overquota <https://github.com/overquota>`_
5556
- `Patrick Hofmann <https://github.com/PH89>`_
5657
- `Pieter Schutz <https://github.com/eldinnie>`_

README.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ We have made you a wrapper you can't refuse
3535
:target: https://ci.appveyor.com/project/Eldinnie/python-telegram-bot
3636
:alt: AppVeyor CI Status
3737

38-
.. image:: https://codeclimate.com/github/python-telegram-bot/python-telegram-bot/badges/gpa.svg
39-
:target: https://codeclimate.com/github/python-telegram-bot/python-telegram-bot
40-
:alt: Code Climate
4138

4239
.. image:: https://codecov.io/gh/python-telegram-bot/python-telegram-bot/branch/master/graph/badge.svg
4340
:target: https://codecov.io/gh/python-telegram-bot/python-telegram-bot

codecov.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
comment:
2-
layout: "diff, files"
3-
behavior: default
4-
require_changes: false
1+
comment: false

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This example sheds some light on inline keyboards, callback queries and message
2424
### [`inlinebot.py`](https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/inlinebot.py)
2525
A basic example of an [inline bot](https://core.telegram.org/bots/inline). Don't forget to enable inline mode with [@BotFather](https://telegram.me/BotFather).
2626

27-
### [`paymentbot.py`](https://github.com/python-telegram-bot/python-telegram-bot/blob/examples/paymentbot.py)
27+
### [`paymentbot.py`](https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/paymentbot.py)
2828
A basic example of a bot that can accept payments. Don't forget to enable and configure payments with [@BotFather](https://telegram.me/BotFather).
2929

3030
## Pure API

examples/__init__.py

Whitespace-only changes.

examples/inlinebot.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
"""
1919
from uuid import uuid4
2020

21-
import re
22-
23-
from examples.settings import TOKEN
2421
from telegram.utils.helpers import escape_markdown
2522

2623
from telegram import InlineQueryResultArticle, ParseMode, \
@@ -78,8 +75,8 @@ def error(bot, update, error):
7875

7976

8077
def main():
81-
# Create the Updater and pass it your bot's token as a string.
82-
updater = Updater(TOKEN)
78+
# Create the Updater and pass it your bot's token.
79+
updater = Updater("TOKEN")
8380

8481
# Get the dispatcher to register handlers
8582
dp = updater.dispatcher

0 commit comments

Comments
 (0)