Add question_entities field to Poll struct

This commit is contained in:
Andrey Brusnik 2024-08-18 23:12:29 +04:00
parent f2e96d808c
commit 5156210bfd
No known key found for this signature in database
GPG key ID: D33232F28CFF442C

View file

@ -15,6 +15,10 @@ pub struct Poll {
/// Poll question, 1-300 characters.
pub question: String,
/// Special entities that appear in the question. Currently, only custom
/// emoji entities are allowed in poll questions
pub question_entities: Option<Vec<MessageEntity>>,
/// List of poll options.
pub options: Vec<PollOption>,