mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Add can_connect_to_business
field to Me
struct
This commit is contained in:
parent
8314780959
commit
5a533ebc34
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,10 @@ pub struct Me {
|
|||
|
||||
/// `true`, if the bot supports inline queries.
|
||||
pub supports_inline_queries: bool,
|
||||
|
||||
/// `true`, if the bot can be connected to a Telegram Business account to
|
||||
/// receive its messages.
|
||||
pub can_connect_to_business: bool,
|
||||
}
|
||||
|
||||
impl Me {
|
||||
|
@ -73,6 +77,7 @@ mod tests {
|
|||
can_join_groups: false,
|
||||
can_read_all_group_messages: false,
|
||||
supports_inline_queries: false,
|
||||
can_connect_to_business: false,
|
||||
};
|
||||
|
||||
assert_eq!(me.username(), "SomethingSomethingBot");
|
||||
|
|
Loading…
Reference in a new issue