-
Notifications
You must be signed in to change notification settings - Fork 157
Closed
Description
I'm playing with this library (master) but find that it's unable to pattern matching on chat
field of a Message
.
The Message
struct looks like:
pub struct Message {
pub id: MessageId,
pub from: User,
pub date: Integer,
pub chat: MessageChat,
pub forward: Option<Forward>,
pub reply_to_message: Option<Box<MessageOrChannelPost>>,
pub edit_date: Option<Integer>,
pub kind: MessageKind,
}
The chat
field has type of MessageChat
, which is defined in telegram_bot_raw::types::chat
module. This module is not re-exported in the top level module of telegram-bot crate, so I'm not able to use it directly.
Now I have to include the telegram-bot-raw crate to achieve my goal, but I think this might not be intended.
Metadata
Metadata
Assignees
Labels
No labels