mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Fix SendChatAction return type
This commit is contained in:
parent
8cd8ac96d9
commit
528187d7e6
2 changed files with 4 additions and 2 deletions
|
@ -9,11 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
### Fixed
|
||||
|
||||
- `SendChatAction` output type `Message` => `True` ([#75][pr75])
|
||||
- `GetChatAdministrators` output type `ChatMember` => `Vec<ChatMember>` ([#73][pr73])
|
||||
- `reqwest` dependency bringing `native-tls` in even when `rustls` was selected ([#71][pr71])
|
||||
|
||||
[pr71]: https://github.com/teloxide/teloxide-core/pull/71
|
||||
[pr73]: https://github.com/teloxide/teloxide-core/pull/73
|
||||
[pr75]: https://github.com/teloxide/teloxide-core/pull/75
|
||||
|
||||
## [0.2.2] - 2020-03-22
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
// [`schema`]: https://github.com/WaffleLapkin/tg-methods-schema
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::types::{ChatAction, ChatId, Message};
|
||||
use crate::types::{ChatAction, ChatId, True};
|
||||
|
||||
impl_payload! {
|
||||
/// Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns True on success.
|
||||
|
@ -19,7 +19,7 @@ impl_payload! {
|
|||
///
|
||||
/// [ImageBot]: https://t.me/imagebot
|
||||
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
|
||||
pub SendChatAction (SendChatActionSetters) => Message {
|
||||
pub SendChatAction (SendChatActionSetters) => True {
|
||||
required {
|
||||
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
|
||||
pub chat_id: ChatId [into],
|
||||
|
|
Loading…
Reference in a new issue