updatePaidMessagesPrice method
Future<Result<UpdatesBase> >
updatePaidMessagesPrice({
- required bool broadcastMessagesAllowed,
- required InputChannelBase channel,
- required int sendPaidMessagesStars,
Update Paid Messages Price.
ID: 4b12327b.
Implementation
Future<Result<UpdatesBase>> updatePaidMessagesPrice({
required bool broadcastMessagesAllowed,
required InputChannelBase channel,
required int sendPaidMessagesStars,
}) async {
// Preparing the request.
final request = ChannelsUpdatePaidMessagesPrice(
broadcastMessagesAllowed: broadcastMessagesAllowed,
channel: channel,
sendPaidMessagesStars: sendPaidMessagesStars,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<UpdatesBase>();
}