Class SendInvoice
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<T>
-
- org.telegram.telegrambots.meta.api.methods.BotApiMethod<Message>
-
- org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethodMessage
-
- org.telegram.telegrambots.meta.api.methods.send.SendInvoice
-
- All Implemented Interfaces:
Validable
@Deprecated public class SendInvoice extends BotApiMethodMessage
Deprecated.UseSendInvoice- Version:
- 1.0 Use this method to send an invoice. On success, the sent Message is returned.
- Author:
- Ruben Bermudez
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSendInvoice.SendInvoiceBuilderDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static StringPATHDeprecated.-
Fields inherited from class org.telegram.telegrambots.meta.api.methods.BotApiMethod
METHOD_FIELD
-
Fields inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
OBJECT_MAPPER
-
-
Constructor Summary
Constructors Constructor Description SendInvoice()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetMethod()Deprecated.Getter for method path (that is the same as method name)voidsetChatId(@NonNull Long chatId)Deprecated.voidvalidate()Deprecated.Validates that mandatory fields are filled and optional objects-
Methods inherited from class org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethodMessage
deserializeResponse
-
Methods inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable
-
-
-
-
Field Detail
-
PATH
public static final String PATH
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
setChatId
public void setChatId(@NonNull @NonNull Long chatId)Deprecated.
-
getMethod
public String getMethod()
Deprecated.Description copied from class:BotApiMethodGetter for method path (that is the same as method name)- Specified by:
getMethodin classBotApiMethod<Message>- Returns:
- Method path
-
validate
public void validate() throws TelegramApiValidationExceptionDeprecated.Description copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-