■ ■ ■ ■ ■ ■
src/telepathy/telepathy.py
| skipped 1841 lines |
1842 | 1842 | | bot_info = await self.client().start(bot_token=self.bot) |
1843 | 1843 | | bot_me = bot_info.get_me() |
1844 | 1844 | | user = await bot_info(GetFullUserRequest(bot_me)) |
1845 | | - | |
1846 | | - | |
1847 | 1845 | | user_info = user.user.to_dict() |
1848 | 1846 | | user_info['token'] = self.bot |
1849 | 1847 | | |
1850 | | - | |
1851 | | - | ''' |
1852 | | - | color_print_green(" [+] ", "Bot details for " + obj.id) |
1853 | | - | color_print_green(f" â Username: @{str(obj.username)}") |
1854 | | - | color_print_green(f" â Name: {str(obj.first_name)}") |
1855 | | - | color_print_green(f" â Link: https://t.me/{str(obj.username)}") |
1856 | | - | print("\n") |
1857 | | - | color_print_green(" [+] ", "User related details for bot " + obj.id) |
1858 | | - | color_print_green(f" â User id: @{str(obj.user_id)}") |
1859 | | - | color_print_green(f" â User username: @{str(obj.user_username)}") |
1860 | | - | color_print_green(f" â User name: {str(obj.user_first_name)}") |
1861 | | - | color_print_green(f" â Link: https://t.me/{str(obj.user_username)}") |
1862 | | - | ''' |
1863 | | - | |
1864 | 1848 | | bot_obj = createPlaceholdeCls() |
1865 | 1849 | | bot_obj.id = bot_me.id |
1866 | 1850 | | bot_obj.first_name = bot_me.first_name |
1867 | 1851 | | bot_obj.username = bot_me.username |
1868 | | - | |
1869 | 1852 | | bot_obj.user_id = user.user.id |
1870 | 1853 | | bot_obj.user_username = user.user.username |
1871 | 1854 | | bot_obj.user_first_name = bot_me.user_first_name |
| skipped 201 lines |