mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-29 06:57:50 +03:00 
			
		
		
		
	Make custom, functions and types proper modules
This allows "from telethon.types import Message" to work. Closes #3929. Not entirely sure how it used to work before, perhaps it got changed at some point but this should revert previous behaviour.
This commit is contained in:
		
							parent
							
								
									2f2a9901e2
								
							
						
					
					
						commit
						7cac3668d6
					
				|  | @ -1,9 +1,8 @@ | |||
| from .client.telegramclient import TelegramClient | ||||
| from .network import connection | ||||
| from .tl import types, functions, custom | ||||
| from .tl.custom import Button | ||||
| from .tl import patched as _  # import for its side-effects | ||||
| from . import version, events, utils, errors | ||||
| from . import version, events, utils, errors, types, functions, custom | ||||
| 
 | ||||
| __version__ = version.__version__ | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										1
									
								
								telethon/custom.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								telethon/custom.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| from .tl.custom import * | ||||
							
								
								
									
										1
									
								
								telethon/functions.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								telethon/functions.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| from .tl.functions import * | ||||
							
								
								
									
										1
									
								
								telethon/types.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								telethon/types.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| from .tl.types import * | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user