mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 01:47:27 +03:00 
			
		
		
		
	Fix send_message with buttons not always returning ReplyMarkup
This commit is contained in:
		
							parent
							
								
									d31aaa5d0d
								
							
						
					
					
						commit
						fbf7f75b00
					
				| 
						 | 
				
			
			@ -518,7 +518,8 @@ class MessageMethods(UploadMethods, ButtonMethods, MessageParseMethods):
 | 
			
		|||
                date=result.date,
 | 
			
		||||
                out=result.out,
 | 
			
		||||
                media=result.media,
 | 
			
		||||
                entities=result.entities
 | 
			
		||||
                entities=result.entities,
 | 
			
		||||
                reply_markup=request.reply_markup
 | 
			
		||||
            )
 | 
			
		||||
            message._finish_init(self, {}, entity)
 | 
			
		||||
            return message
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -648,7 +648,7 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC):
 | 
			
		|||
            kwargs['link_preview'] = bool(self.web_preview)
 | 
			
		||||
 | 
			
		||||
        if 'buttons' not in kwargs:
 | 
			
		||||
            kwargs['buttons'] = self.buttons
 | 
			
		||||
            kwargs['buttons'] = self.reply_markup
 | 
			
		||||
 | 
			
		||||
        return await self._client.edit_message(
 | 
			
		||||
            await self.get_input_chat(), self.id,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user