From b359d7f8a6db4d7403239a455f0c6d5581a7dea3 Mon Sep 17 00:00:00 2001 From: strongtu Date: Fri, 17 May 2024 22:52:44 +0800 Subject: [PATCH] let send_message use ChatId --- crates/teloxide-core/src/adaptors/erased.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/teloxide-core/src/adaptors/erased.rs b/crates/teloxide-core/src/adaptors/erased.rs index a27d977a..0ddaf604 100644 --- a/crates/teloxide-core/src/adaptors/erased.rs +++ b/crates/teloxide-core/src/adaptors/erased.rs @@ -876,7 +876,7 @@ trait ErasableRequester<'a> { fn send_game( &self, - chat_id: i64, + chat_id: ChatId, game_short_name: String, ) -> ErasedRequest<'a, SendGame, Self::Err>; @@ -1721,7 +1721,7 @@ where fn send_game( &self, - chat_id: i64, + chat_id: ChatId, game_short_name: String, ) -> ErasedRequest<'a, SendGame, Self::Err> { Requester::send_game(self, chat_id, game_short_name).erase()