Skip to content

Commit

Permalink
fixed message deletion (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
f1reflyyyylmao committed Sep 3, 2021
1 parent dce1c6a commit 1c71d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tourmaline/client/core_methods.cr
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module Tourmaline
# Returns `true` on success.
def delete_message(chat, message)
chat_id = chat.is_a?(Int::Primitive | String) ? chat : chat.id
message_id = message.is_a?(Int::Primitive | Nil) ? message : message.id
message_id = message.is_a?(Int::Primitive | Nil) ? message : message.message_id

request(Bool, "deleteMessage", {
chat_id: chat_id,
Expand Down

0 comments on commit 1c71d79

Please sign in to comment.