`.delete` method on user message not allowed
oskin1 opened this issue · 2 comments
oskin1 commented
.delete
method illustrated in exaples seems to be disallowed by Telegram API
Application fails with the following error:
org.http4s.client.UnexpectedStatus: unexpected HTTP status: 405 Method Not Allowed
augustjune commented
Hi
MessageApi#delete
method does delete the message, but it has several restrictions that should be met for the method to succeed. You can find them in the documentation for the method.
canoe/core/src/main/scala/canoe/api/models/MessageApi.scala
Lines 19 to 25 in e2734e0
Make sure these limitations are satisfied in your use case.
oskin1 commented
@augustjune, thank you!