Merge pull request #142 from teloxide/reruncodegen

re-run payloads codegen
This commit is contained in:
Hirrolot 2021-12-09 16:58:38 +06:00 committed by GitHub
commit e53d51ade4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -48,11 +48,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Throttle` adaptor not honouring chat/min limits ([#121][pr121])
- Make `SendPoll::poll_` optional ([#133][pr133])
- Bug with `caption_entities`, see issue [#473][issue473]
- Type of response for `CopyMessage` method ([#141](pr141))
- Type of response for `CopyMessage` method ([#141](pr141), [#142](pr142))
[pr119]: https://github.com/teloxide/teloxide-core/pull/119
[pr133]: https://github.com/teloxide/teloxide-core/pull/133
[pr141]: https://github.com/teloxide/teloxide-core/pull/141
[pr142]: https://github.com/teloxide/teloxide-core/pull/142
[issue473]: https://github.com/teloxide/teloxide/issues/473
## 0.3.3 - 2021-08-03

View file

@ -8,14 +8,14 @@
// [`schema`]: https://github.com/WaffleLapkin/tg-methods-schema
use serde::Serialize;
use crate::types::{ChatId, Message, MessageEntity, ParseMode, ReplyMarkup};
use crate::types::{ChatId, MessageEntity, MessageId, ParseMode, ReplyMarkup};
impl_payload! {
/// Use this method to copy messages of any kind. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the [`MessageId`] of the sent message on success.
///
/// [`MessageId`]: crate::types::MessageId
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub CopyMessage (CopyMessageSetters) => Message {
pub CopyMessage (CopyMessageSetters) => MessageId {
required {
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
pub chat_id: ChatId [into],