Remove a useless generic in answer_sticker

Fixed https://github.com/teloxide/teloxide/issues/196.
This commit is contained in:
Temirkhan Myrzamadi 2020-03-27 18:52:05 +06:00
parent 73aa67c147
commit a4d6673a91

View file

@ -124,7 +124,7 @@ impl DispatcherHandlerCx<Message> {
self.bot.send_contact(self.chat_id(), phone_number, first_name) self.bot.send_contact(self.chat_id(), phone_number, first_name)
} }
pub fn answer_sticker<T>(&self, sticker: InputFile) -> SendSticker { pub fn answer_sticker(&self, sticker: InputFile) -> SendSticker {
self.bot.send_sticker(self.update.chat.id, sticker) self.bot.send_sticker(self.update.chat.id, sticker)
} }