Skip to content

Commit f4ffe61

Browse files
committed
Various fixes.
1 parent 082c55b commit f4ffe61

File tree

10 files changed

+9
-12
lines changed

10 files changed

+9
-12
lines changed

SplitSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ function ($matches) use ($needed_std_headers) {
447447
'story_manager[_(-](?![.]get[(][)])|StoryManager' => 'StoryManager',
448448
'SuggestedAction|[a-z_]*_suggested_action' => 'SuggestedAction',
449449
'suggested_action_manager[_(-](?![.]get[(][)])|SuggestedActionManager' => 'SuggestedActionManager',
450-
'SuggestedPost[^P]' => 'SuggestedPost',
450+
'SuggestedPost[^A-Z]' => 'SuggestedPost',
451451
'SuggestedPostPrice' => 'SuggestedPostPrice',
452452
'SynchronousRequests' => 'SynchronousRequests',
453453
'TargetDialogTypes' => 'TargetDialogTypes',

td/generate/DotnetTlDocumentationGenerator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ protected function addAbstractClassDocumentation($class_name, $documentation)
264264
</member>
265265
EOT
266266
);
267-
268267
}
269268

270269
protected function getFunctionReturnTypeDescription($return_type, $for_constructor)

td/generate/scheme/td_api.tl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ basicGroupFullInfo photo:chatPhoto description:string creator_user_id:int53 memb
19871987
//@has_location True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup
19881988
//@sign_messages True, if messages sent to the channel contains name of the sender. This field is only applicable to channels
19891989
//@show_message_sender True, if messages sent to the channel have information about the sender user. This field is only applicable to channels
1990-
//@join_to_send_messages True, if users need to join the supergroup before they can send messages. Can be false only for discussion supergroups and channel direct messages groups
1990+
//@join_to_send_messages True, if users need to join the supergroup before they can send messages. May be false only for discussion supergroups and channel direct messages groups
19911991
//@join_by_request True, if all users directly joining the supergroup need to be approved by supergroup administrators. Always false for channels and supergroups without username, location, or a linked chat
19921992
//@is_slow_mode_enabled True, if the slow mode is enabled in the supergroup
19931993
//@is_channel True, if the supergroup is a channel
@@ -4433,7 +4433,7 @@ messageGiftedStars gifter_user_id:int53 receiver_user_id:int53 currency:string a
44334433
//@ton_amount The received amount of Toncoins, in the smallest units of the cryptocurrency
44344434
//@transaction_id Identifier of the transaction for Toncoin credit; for receiver only
44354435
//@sticker A sticker to be shown in the message; may be null if unknown
4436-
messageGiftedTon gifter_user_id:int53 receiver_user_id:int53 ton_amount:int64 transaction_id:string sticker:sticker = MessageContent;
4436+
messageGiftedTon gifter_user_id:int53 receiver_user_id:int53 ton_amount:int53 transaction_id:string sticker:sticker = MessageContent;
44374437

44384438
//@description A Telegram Stars were received by the current user from a giveaway
44394439
//@star_count Number of Telegram Stars that were received
@@ -4526,7 +4526,7 @@ messageSuggestedPostDeclined suggested_post_message_id:int53 comment:string = Me
45264526
//@suggested_post_message_id Identifier of the message with the suggested post; can be 0 if the message was deleted
45274527
//@star_amount The amount of received Telegram Stars
45284528
//@ton_amount The amount of received Toncoins; in the smallest units of the cryptocurrency
4529-
messageSuggestedPostPaid suggested_post_message_id:int53 star_amount:starAmount ton_amount:int64 = MessageContent;
4529+
messageSuggestedPostPaid suggested_post_message_id:int53 star_amount:starAmount ton_amount:int53 = MessageContent;
45304530

45314531
//@description A suggested post was refunded
45324532
//@suggested_post_message_id Identifier of the message with the suggested post; can be 0 if the message was deleted
@@ -11774,8 +11774,8 @@ declineSuggestedPost chat_id:int53 message_id:int53 comment:string = Ok;
1177411774
//-Returns the sent message
1177511775
//@chat_id Identifier of the channel direct messages chat
1177611776
//@message_id Identifier of the message in the chat which will be sent as suggested post. Use messageProperties.can_add_offer to check whether an offer can be added
11777-
//-or messageProperties.can_change_suggested_post_info to check whether price or time of sending of the post can be changed
11778-
//@options Options to be used to send the message. New information about the suggested post must be always specified
11777+
//-or messageProperties.can_edit_suggested_post_info to check whether price or time of sending of the post can be changed
11778+
//@options Options to be used to send the message. New information about the suggested post must always be specified
1177911779
addOffer chat_id:int53 message_id:int53 options:messageSendOptions = Message;
1178011780

1178111781

td/telegram/CurrencyAmount.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
//
77
#include "td/telegram/CurrencyAmount.h"
88

9-
#include "td/utils/logging.h"
10-
119
namespace td {
1210

1311
CurrencyAmount::CurrencyAmount(telegram_api::object_ptr<telegram_api::StarsAmount> &&amount_ptr, bool allow_negative) {

td/telegram/CurrencyAmount.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#pragma once
88

99
#include "td/telegram/StarAmount.h"
10-
#include "td/telegram/td_api.h"
1110
#include "td/telegram/telegram_api.h"
1211
#include "td/telegram/TonAmount.h"
1312

td/telegram/MessageImportManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "td/telegram/files/FileManager.h"
1414
#include "td/telegram/files/FileType.h"
1515
#include "td/telegram/Global.h"
16-
#include "td/telegram/MessageContent.h"
1716
#include "td/telegram/Td.h"
1817
#include "td/telegram/telegram_api.h"
1918
#include "td/telegram/UserManager.h"

td/telegram/MessageImportManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#pragma once
88

99
#include "td/telegram/DialogId.h"
10+
#include "td/telegram/files/FileId.h"
1011
#include "td/telegram/files/FileUploadId.h"
1112
#include "td/telegram/td_api.h"
1213
#include "td/telegram/telegram_api.h"

td/telegram/MessageQueryManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "td/telegram/logevent/LogEvent.h"
2424
#include "td/telegram/logevent/LogEventHelper.h"
2525
#include "td/telegram/MessageContent.h"
26+
#include "td/telegram/MessageContentType.h"
2627
#include "td/telegram/MessageEntity.h"
2728
#include "td/telegram/MessageReaction.h"
2829
#include "td/telegram/MessageSearchOffset.h"

td/telegram/TonAmount.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
#pragma once
88

9-
#include "td/telegram/td_api.h"
109
#include "td/telegram/telegram_api.h"
1110

1211
#include "td/utils/common.h"

td/telegram/UpdatesManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
#include "td/telegram/telegram_api.hpp"
8686
#include "td/telegram/ThemeManager.h"
8787
#include "td/telegram/TimeZoneManager.h"
88+
#include "td/telegram/TonAmount.h"
8889
#include "td/telegram/TranscriptionManager.h"
8990
#include "td/telegram/UserManager.h"
9091
#include "td/telegram/Usernames.h"

0 commit comments

Comments
 (0)