Exemple #1
0
 async def request(self, method, **kwargs):
     if method == "getMe":
         return TGResponse(False, (), {
             "first_name": "A",
             "last_name": "B",
             "username": "******"
         })
Exemple #2
0
 async def request(self, method, **kwargs):
     return TGResponse(False, (), [method, kwargs])
Exemple #3
0
 async def request(self, method, **kwargs):
     if method == "getMe":
         return TGResponse(True, (), {})
Exemple #4
0
 async def request(self, method, **kwargs):
     if method == "getUpdates":
         return TGResponse(True, (), "")
Exemple #5
0
 async def request(self, method, **kwargs):
     if method == "getUpdates":
         return TGResponse(False, (), [{"update_id": 10}])
Exemple #6
0
        async def request(_, method, **kwargs):
            self.assertEqual(kwargs["file_id"], 13)

            return TGResponse(True, (), "")
Exemple #7
0
        async def request(_, method, **kwargs):
            self.assertEqual(kwargs["file_id"], 13)

            return TGResponse(False, (), {"file_path": "path"})