Permalink
Browse files

Fixed some bugs

  • Loading branch information...
yusufk committed Feb 24, 2016
1 parent 3ca0b7e commit 180b34e894ccc4ea1b79c76936ce7e6041613b24
Showing with 2 additions and 2 deletions.
  1. +2 −2 pytgbotapi/BotApi.py
View
@@ -35,7 +35,7 @@ class Update:
def __init__(self, update_id,message=None):
self.update_id = update_id
if message != None:
print(message)
#print(message)
self.message = Message(message['message_id'],message['from'],message['date'],message['chat'])
if "text" in message:
self.message.set_text(message['text'])
@@ -52,7 +52,7 @@ def __init__(self, chat_id, chat_type, chat_title=None, chat_username=None, chat
self.last_name = chat_last_name
def set_title(self,title):
self.title = chat_title
self.title = title
def set_username(self,username):
self.username = username

0 comments on commit 180b34e

Please sign in to comment.