Skip to content

Commit

Permalink
Update message.py
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbozhok committed Aug 12, 2015
1 parent a5fcf1e commit c3ea903
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion message.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def __init__(self, bot, data):
self.bot = bot
self.data = data
self.sender = data['from'].get('username', data['from']['first_name'])
self.chat_id = data['chat']['id']

def reply(self, text, markup=None):
"""Reply to this message"""
Expand Down Expand Up @@ -72,4 +73,4 @@ class ContactMessage(TgMessage):
"sticker": StickerMessage,
"video": VideoMessage,
"contact": ContactMessage
}
}

0 comments on commit c3ea903

Please sign in to comment.