From 3b40f2501e97a6f7cc2ffcd3c3c2668680073525 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 26 May 2017 10:53:33 +0300 Subject: [PATCH] Fix send_photo --- aiogram/__init__.py | 2 +- aiogram/api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aiogram/__init__.py b/aiogram/__init__.py index eed50681..79041b34 100644 --- a/aiogram/__init__.py +++ b/aiogram/__init__.py @@ -2,7 +2,7 @@ import logging __version__ = '0.1b' -log = logging.getLogger('aiogram') +log = logging.getLogger(__name__) API_URL = "https://api.telegram.org/bot{token}/{method}" FILE_URL = "https://api.telegram.org/file/bot{token}/{file_id}" diff --git a/aiogram/api.py b/aiogram/api.py index baf92e47..2d9ac281 100644 --- a/aiogram/api.py +++ b/aiogram/api.py @@ -91,7 +91,7 @@ class ApiMethods: GET_WEBHOOK_INFO = 'getWebhookInfo' # TODO SEND_MESSAGE = 'sendMessage' FORWARD_MESSAGE = 'forwardMessage' - SEND_PHOTO = 'sendPhoto' # TODO + SEND_PHOTO = 'sendPhoto' SEND_AUDIO = 'sendAudio' # TODO SEND_DOCUMENT = 'sendDocument' # TODO SEND_STICKER = 'sendSticker' # TODO