mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 01:47:27 +03:00 
			
		
		
		
	Fix inline builder articles
This commit is contained in:
		
							parent
							
								
									2c64970451
								
							
						
					
					
						commit
						08bb72ea6b
					
				| 
						 | 
					@ -1,4 +1,5 @@
 | 
				
			||||||
import hashlib
 | 
					import hashlib
 | 
				
			||||||
 | 
					import dataclasses
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from ... import _tl
 | 
					from ... import _tl
 | 
				
			||||||
from ..._misc import utils
 | 
					from ..._misc import utils
 | 
				
			||||||
| 
						 | 
					@ -144,7 +145,7 @@ class InlineBuilder:
 | 
				
			||||||
            content=content
 | 
					            content=content
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
        if id is None:
 | 
					        if id is None:
 | 
				
			||||||
            result.id = hashlib.sha256(bytes(result)).hexdigest()
 | 
					            result = dataclasses.replace(result, id=hashlib.sha256(bytes(result)).hexdigest())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return result
 | 
					        return result
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user