Class: TD::Types::MessageProperties
- Defined in:
- lib/tdlib/types/message_properties.rb
Overview
Contains properties of a message and describes actions that can be done with the message right now.
Instance Attribute Summary collapse
-
#can_be_deleted_for_all_users ⇒ Boolean
True, if the message can be deleted for all users using the method deleteMessages with revoke == true.
-
#can_be_deleted_only_for_self ⇒ Boolean
True, if the message can be deleted only for the current user while other users will continue to see it using the method deleteMessages with revoke == false.
-
#can_be_edited ⇒ Boolean
True, if the message can be edited using the methods editMessageText, editMessageMedia, editMessageCaption, or editMessageReplyMarkup.
-
#can_be_forwarded ⇒ Boolean
True, if the message can be forwarded using InputMessageContent::Forwarded or forwardMessages.
-
#can_be_paid ⇒ Boolean
True, if the message can be paid using inputInvoiceMessage.
-
#can_be_pinned ⇒ Boolean
True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage.
-
#can_be_replied ⇒ Boolean
True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage.
-
#can_be_replied_in_another_chat ⇒ Boolean
True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage.
-
#can_be_saved ⇒ Boolean
True, if content of the message can be saved locally or copied using InputMessageContent::Forwarded or forwardMessages with copy options.
-
#can_be_shared_in_story ⇒ Boolean
True, if the message can be shared in a story using inputStoryAreaTypeMessage.
-
#can_edit_scheduling_state ⇒ Boolean
True, if scheduling state of the message can be edited.
-
#can_get_embedding_code ⇒ Boolean
True, if code for message embedding can be received using getMessageEmbeddingCode.
-
#can_get_link ⇒ Boolean
True, if a link can be generated for the message using getMessageLink.
-
#can_get_media_timestamp_links ⇒ Boolean
True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink.
-
#can_get_message_thread ⇒ Boolean
True, if information about the message thread is available through getMessageThread and getMessageThreadHistory.
-
#can_get_read_date ⇒ Boolean
True, if read date of the message can be received through getMessageReadDate.
-
#can_get_statistics ⇒ Boolean
True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards.
-
#can_get_viewers ⇒ Boolean
True, if chat members already viewed the message can be received through getMessageViewers.
-
#can_recognize_speech ⇒ Boolean
True, if speech can be recognized for the message through recognizeSpeech.
-
#can_report_chat ⇒ Boolean
True, if the message can be reported using reportChat.
-
#can_report_reactions ⇒ Boolean
True, if reactions on the message can be reported through reportMessageReactions.
-
#can_report_supergroup_spam ⇒ Boolean
True, if the message can be reported using reportSupergroupSpam.
-
#can_set_fact_check ⇒ Boolean
True, if fact check for the message can be changed through setMessageFactCheck.
-
#need_show_statistics ⇒ Boolean
True, if message statistics must be available from context menu of the message.
Method Summary
Methods inherited from Base
Instance Attribute Details
#can_be_deleted_for_all_users ⇒ Boolean
True, if the message can be deleted for all users using the method deleteMessages with revoke == true.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_be_deleted_for_all_users @can_be_deleted_for_all_users end |
#can_be_deleted_only_for_self ⇒ Boolean
True, if the message can be deleted only for the current user while other users will continue to see it using the method deleteMessages with revoke == false.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_be_deleted_only_for_self @can_be_deleted_only_for_self end |
#can_be_edited ⇒ Boolean
True, if the message can be edited using the methods editMessageText, editMessageMedia, editMessageCaption, or editMessageReplyMarkup. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_be_edited @can_be_edited end |
#can_be_forwarded ⇒ Boolean
True, if the message can be forwarded using InputMessageContent::Forwarded or forwardMessages.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_be_forwarded @can_be_forwarded end |
#can_be_paid ⇒ Boolean
True, if the message can be paid using inputInvoiceMessage.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_be_paid @can_be_paid end |
#can_be_pinned ⇒ Boolean
True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_be_pinned @can_be_pinned end |
#can_be_replied ⇒ Boolean
True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_be_replied @can_be_replied end |
#can_be_replied_in_another_chat ⇒ Boolean
True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_be_replied_in_another_chat @can_be_replied_in_another_chat end |
#can_be_saved ⇒ Boolean
True, if content of the message can be saved locally or copied using InputMessageContent::Forwarded or forwardMessages with copy options.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_be_saved @can_be_saved end |
#can_be_shared_in_story ⇒ Boolean
True, if the message can be shared in a story using inputStoryAreaTypeMessage.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_be_shared_in_story @can_be_shared_in_story end |
#can_edit_scheduling_state ⇒ Boolean
True, if scheduling state of the message can be edited.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_edit_scheduling_state @can_edit_scheduling_state end |
#can_get_embedding_code ⇒ Boolean
True, if code for message embedding can be received using getMessageEmbeddingCode.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def end |
#can_get_link ⇒ Boolean
True, if a link can be generated for the message using getMessageLink.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_get_link @can_get_link end |
#can_get_media_timestamp_links ⇒ Boolean
True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def end |
#can_get_message_thread ⇒ Boolean
True, if information about the message thread is available through getMessageThread and getMessageThreadHistory.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def end |
#can_get_read_date ⇒ Boolean
True, if read date of the message can be received through getMessageReadDate.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_get_read_date @can_get_read_date end |
#can_get_statistics ⇒ Boolean
True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_get_statistics @can_get_statistics end |
#can_get_viewers ⇒ Boolean
True, if chat members already viewed the message can be received through getMessageViewers.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_get_viewers @can_get_viewers end |
#can_recognize_speech ⇒ Boolean
True, if speech can be recognized for the message through recognizeSpeech.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_recognize_speech @can_recognize_speech end |
#can_report_chat ⇒ Boolean
True, if the message can be reported using reportChat.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_report_chat @can_report_chat end |
#can_report_reactions ⇒ Boolean
True, if reactions on the message can be reported through reportMessageReactions.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_report_reactions @can_report_reactions end |
#can_report_supergroup_spam ⇒ Boolean
True, if the message can be reported using reportSupergroupSpam.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_report_supergroup_spam @can_report_supergroup_spam end |
#can_set_fact_check ⇒ Boolean
True, if fact check for the message can be changed through setMessageFactCheck.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def can_set_fact_check @can_set_fact_check end |
#need_show_statistics ⇒ Boolean
True, if message statistics must be available from context menu of the message.
46 47 48 |
# File 'lib/tdlib/types/message_properties.rb', line 46 def need_show_statistics @need_show_statistics end |