File containing the sound to be played
+ when the animated emoji is clicked if
+ any; may be null. The sound is encoded
+ with the Opus codec, and stored inside
+ an OGG container.
Describes an animated representation
+ of an emoji.
+
+
Parameters:
+
sticker - Sticker Animated sticker for the emoji.
+
colorReplacements - ColorReplacement[] List of colors to be replaced while
+ the sticker is rendered.
+
sound - File File containing the sound to be played
+ when the animated emoji is clicked if
+ any; may be null. The sound is encoded
+ with the Opus codec, and stored inside
+ an OGG container.
Creates a video chat (a group call
bound to a chat). Available only for
basic groups, supergroups and channels;
- requires canManageVoiceChats rights.
+ requires canManageVideoChats rights.
Point in time (Unix timestamp) when
the group call is supposed to be
started by an administrator; 0 to
- start the voice chat immediately. The
+ start the video chat immediately. The
date must be at least 10 seconds and
at most 8 days in the future.
Creates a video chat (a group call
bound to a chat). Available only for
basic groups, supergroups and channels;
- requires canManageVoiceChats rights.
+ requires canManageVideoChats rights.
publicCreateVideoChat(long chatId,
String title,
int startDate)
-
Creates a voice chat (a group call
+
Creates a video chat (a group call
bound to a chat). Available only for
basic groups, supergroups and channels;
- requires canManageVoiceChats rights.
+ requires canManageVideoChats rights.
chatId - long Chat identifier, in which the voice
+
chatId - long Chat identifier, in which the video
chat will be created.
title - String Group call title; if empty, chat title
will be used.
startDate - int Point in time (Unix timestamp) when
the group call is supposed to be
started by an administrator; 0 to
- start the voice chat immediately. The
+ start the video chat immediately. The
date must be at least 10 seconds and
at most 8 days in the future.
Creates a video chat (a group call
bound to a chat). Available only for
basic groups, supergroups and channels;
- requires canManageVoiceChats rights.
+ requires canManageVideoChats rights.
public static final class TdApi.DeleteChatMessagesByDate
+extends TdApi.Function<TdApi.Ok>
+
Deletes all messages between the
+ specified dates in a chat. Supported
+ only for private chats and basic
+ groups. Messages sent in the last 30
+ seconds will not be deleted.
+
Deletes all messages between the
+ specified dates in a chat. Supported
+ only for private chats and basic
+ groups. Messages sent in the last 30
+ seconds will not be deleted.
+
publicDeleteChatMessagesByDate(long chatId,
+ int minDate,
+ int maxDate,
+ boolean revoke)
+
Deletes all messages between the
+ specified dates in a chat. Supported
+ only for private chats and basic
+ groups. Messages sent in the last 30
+ seconds will not be deleted.
+
Deletes all messages between the
+ specified dates in a chat. Supported
+ only for private chats and basic
+ groups. Messages sent in the last 30
+ seconds will not be deleted.
+
Invite link for which to return join
+ requests. If empty, all join requests
+ will be returned. Requires administrator
+ privileges and canInviteUsers right
+ in the chat for own links and owner
+ privileges for other links.
inviteLink - String Invite link for which to return join
+ requests. If empty, all join requests
+ will be returned. Requires administrator
+ privileges and canInviteUsers right
+ in the chat for own links and owner
+ privileges for other links.
+
query - String A query to search for in the first
+ names, last names and usernames of
+ the users to return.
+
offsetRequest - ChatJoinRequest A chat join request from which to
+ return next requests; pass null to
+ get results from the beginning.
+
limit - int The maximum number of chat join requests to return.
Returns information about the next
+ messages of the specified type in the
+ chat splitted by days. Returns the
+ results in reverse chronological order.
+ Can return partial result for the last
+ returned day. Behavior of this method
+ depends on the value of the option "utc_time_offset".
+
Filter for message content. Filters
+ searchMessagesFilterEmpty,
+ searchMessagesFilterCall,
+ searchMessagesFilterMissedCall,
+ searchMessagesFilterMention and
+ searchMessagesFilterUnreadMention are
+ unsupported in this function.
+
+
+
+
+
fromMessageId
+
publiclongfromMessageId
+
The message identifier from which to
+ return information about messages;
+ use 0 to get results from the last message.
Returns information about the next
+ messages of the specified type in the
+ chat splitted by days. Returns the
+ results in reverse chronological order.
+ Can return partial result for the last
+ returned day. Behavior of this method
+ depends on the value of the option "utc_time_offset".
+
Returns information about the next
+ messages of the specified type in the
+ chat splitted by days. Returns the
+ results in reverse chronological order.
+ Can return partial result for the last
+ returned day. Behavior of this method
+ depends on the value of the option "utc_time_offset".
+
chatId - long Identifier of the chat in which to
+ return information about messages.
+
filter - SearchMessagesFilter Filter for message content. Filters
+ searchMessagesFilterEmpty,
+ searchMessagesFilterCall,
+ searchMessagesFilterMissedCall,
+ searchMessagesFilterMention and
+ searchMessagesFilterUnreadMention are
+ unsupported in this function.
+
fromMessageId - long The message identifier from which to
+ return information about messages;
+ use 0 to get results from the last message.
Returns information about the next
+ messages of the specified type in the
+ chat splitted by days. Returns the
+ results in reverse chronological order.
+ Can return partial result for the last
+ returned day. Behavior of this method
+ depends on the value of the option "utc_time_offset".
+
Returns sparse positions of messages
+ of the specified type in the chat to
+ be used for shared media scroll
+ implementation. Returns the results
+ in reverse chronological order (i.e.,
+ in order of decreasing messageId).
+ Cannot be used in secret chats or with
+ searchMessagesFilterFailedToSend filter
+ without an enabled message database.
+
Filter for message content. Filters
+ searchMessagesFilterEmpty,
+ searchMessagesFilterCall,
+ searchMessagesFilterMissedCall,
+ searchMessagesFilterMention and
+ searchMessagesFilterUnreadMention are
+ unsupported in this function.
+
+
+
+
+
fromMessageId
+
publiclongfromMessageId
+
The message identifier from which to
+ return information about message positions.
+
+
+
+
+
limit
+
publicintlimit
+
The expected number of message positions
+ to be returned; 50-2000. A smaller
+ number of positions can be returned,
+ if there are not enough appropriate messages.
Returns sparse positions of messages
+ of the specified type in the chat to
+ be used for shared media scroll
+ implementation. Returns the results
+ in reverse chronological order (i.e.,
+ in order of decreasing messageId).
+ Cannot be used in secret chats or with
+ searchMessagesFilterFailedToSend filter
+ without an enabled message database.
+
publicGetChatSparseMessagePositions(long chatId,
+ TdApi.SearchMessagesFilter filter,
+ long fromMessageId,
+ int limit)
+
Returns sparse positions of messages
+ of the specified type in the chat to
+ be used for shared media scroll
+ implementation. Returns the results
+ in reverse chronological order (i.e.,
+ in order of decreasing messageId).
+ Cannot be used in secret chats or with
+ searchMessagesFilterFailedToSend filter
+ without an enabled message database.
+
chatId - long Identifier of the chat in which to
+ return information about message positions.
+
filter - SearchMessagesFilter Filter for message content. Filters
+ searchMessagesFilterEmpty,
+ searchMessagesFilterCall,
+ searchMessagesFilterMissedCall,
+ searchMessagesFilterMention and
+ searchMessagesFilterUnreadMention are
+ unsupported in this function.
+
fromMessageId - long The message identifier from which to
+ return information about message positions.
+
limit - int The expected number of message positions
+ to be returned; 50-2000. A smaller
+ number of positions can be returned,
+ if there are not enough appropriate messages.
Returns sparse positions of messages
+ of the specified type in the chat to
+ be used for shared media scroll
+ implementation. Returns the results
+ in reverse chronological order (i.e.,
+ in order of decreasing messageId).
+ Cannot be used in secret chats or with
+ searchMessagesFilterFailedToSend filter
+ without an enabled message database.
+
The link is a link to a video chat.
Call searchPublicChat with the given
chat username, and then joinGoupCall
with the given invite hash to process the link.
The link is a link to a video chat.
Call searchPublicChat with the given
chat username, and then joinGoupCall
with the given invite hash to process the link.
The link is a link to a video chat.
Call searchPublicChat with the given
chat username, and then joinGoupCall
with the given invite hash to process the link.
Parameters:
-
chatUsername - String Username of the chat with the voice chat.
+
chatUsername - String Username of the chat with the video chat.
inviteHash - String If non-empty, invite hash to be used
- to join the voice chat without being
+ to join the video chat without being
muted by administrators.
-
isLiveStream - boolean True, if the voice chat is expected
+
isLiveStream - boolean True, if the video chat is expected
to be a live stream in a channel or
a broadcast group.
The link is a link to a video chat.
Call searchPublicChat with the given
chat username, and then joinGoupCall
with the given invite hash to process the link.
Group call identifier of an active
- voice chat; 0 if none. Full information
- about the voice chat can be received
+ video chat; 0 if none. Full information
+ about the video chat can be received
through the method getGroupCall.
groupCallId - int Group call identifier of an active
- voice chat; 0 if none. Full information
- about the voice chat can be received
+ video chat; 0 if none. Full information
+ about the video chat can be received
through the method getGroupCall.
-
hasParticipants - boolean True, if the voice chat has participants.
+
hasParticipants - boolean True, if the video chat has participants.
defaultParticipantId - MessageSender Default group call participant identifier
- to join the voice chat; may be null.