Skip to content

MessageChat not exported #85

@shouya

Description

@shouya

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions