1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Method getMe done.

This commit is contained in:
eternnoir
2015-06-26 15:46:02 +08:00
parent b4691a2a3a
commit ba2e1662cd
3 changed files with 32 additions and 2 deletions

9
tests/test_types.py Normal file
View File

@ -0,0 +1,9 @@
# -*- coding: utf-8 -*-
import sys
sys.path.append('../')
from telebot import types
def test_json_user():
jsonstring = r'{"id":101176298,"first_name":"RDSSBOT","username":"rdss_bot"}'
u = types.User.de_json(jsonstring)
assert u.id is not 101176298