Register New Line

RegisterNewLineValidationCodeRequest

Description

You can use this method to add a new line to your account.
To do this you need to request an activation code from Telegram by this method.
After calling this method, an SMS containing an activation code is sent to you by Telegram.
After receiving the activation code you should call RegisterNewLineValidationCodeConfirmation method and if you enter the correct activation code the number will be added to your account.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

phone

string

Your desired mobile number as the International standard without + and 00 at beginning of the number

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is of boolean type and if the return value is TRUE, that activation code is sent by telegram to your number.

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

RegisterNewLineValidationCodeConfirmation

RegisterNewLineValidationCodeConfirmation

Description

To add a new number to your account you should request an activation code from Telegram by RegisterNewLineValidationCodeRequest method for the desired number.
After receiving the activation code you need to call this method with desired mobile number, if you enter the correct activation code the number will be added to your account and you can use the number to send messages via Telegram.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

phone

string

Your desired mobile number as the International standard without + and 00 at beginning of the number

code

string

Activation code received for the desired number

profileFirstName

string

After registering the number in Telegram a First name should be allocated to the number profile and you can enter the First name in this parameter
Note: that the recipients of your messages will see the First name

profileLastName

string

After registering the number in Telegram a Last name should be allocated to the number profile and you can enter the Last name in this parameter
Note: that the recipients of your messages will see the Last name

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is of boolean type and if the return value is TRUE, the activation code is correct and the line is successfully added to your account.

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

RegisterNewLineValidationCodeRequest

Send Message

SendMessageText

Description

This method is to send a variety of text messages; you can use this method to send text messages to a list of your recipients.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

toNumbers

string array

An array of string type that contains the list of recipient's mobile number
The maximum length of array is 50

messageText

string

Your message's text

fromNumbers

string array

An array of string type that determines your messages are sent through which line (if this array is sent as null the system will automatically select the lines)
The maximum length of array is 50

deleteContactAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the receiver information after sending the message (It might reduce the speed of sending)

deleteConversionAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the conversion after sending the message from the sender line (It might reduce the speed of sending)

interLineCommunication

boolean

If the value of this parameter is TRUE, the system will receive and send messages through other lines existing in your account after sending the message to the specified recipients (It might reduce the speed of sending)

numberOfInterLineCommunication

integer

If you have evaluated interLineCommunication parameter as TRUE, you can specify the number of sent and received messages in your lines in the system (if you enter the number zero the number will be specified automatically and based on the number of deliveries)

numberOfSendByEachLinePer24Hour

integer

With this parameter you can specify the number of messages sent within 24 hours by each line (if you enter the number zero the system will automatically control the number of sent messages by each line)
Note: The number of sent messages means the delivered messages
Note: The maximum number of messages allowed to be sent by each line is 30 in 24 hours and in case of sending more messages you might be blocked by Telegram

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of SentMessageResult class that contains information about each recipient.

The length of the array is equal to the length of input parameter toNumbers.

SentMessageResult Members:

Member Name Type Description

FromNumber

string

The number through which the messages have been sent

ToNumber

string

Recipient number

MessageText

string

The final text message received by the recipient

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

You can use the following variables in your message that will change the text per recipient automatically :

Variable Description

{SHORT_UTC_DATE}

Adds the date to the text message
The date will be short based on UTC
Example: "06.15.2008"

{LONG_UTC_DATE}

Adds the date to the text message
The date will be complete based on UTC
Example: "Sunday, June 15, 2008"

{SHORT_UTC_TIME}

Adds the time to the text message
The time will be short based on UTC
Example: "9:15 PM"

{LONG_UTC_TIME}

Adds the time to the text message
The time will be complete based on UTC
Example: "9:15:07 PM"

{FULL_UTC_DATE_TIME}

Adds the date and time to the text message
The date and time will be in AD and based on UTC
Example: "Sunday, June 15, 2008 9:15:07 PM"

{SHORT_SHAMSI_DATE}

Adds the date to the text message
The date will be in Solar year and based on Iranian standard
The short format will be "03/01/1394"

{LONG_SHAMSI_DATE}

Adds the date to the text message
The date will be in Solar year and based on Iranian standard
The full format will be "جمعه، سوم فروردین سال 1394"

{SHORT_SHAMSI_TIME}

Adds the time to the text message
The time will be based on Iranian standard
The short format will be "9:15 PM"

{LONG_SHAMSI_TIME}

Adds the time to the text message
The time will be based on Iranian standard
The full format will be "9:15:07 PM"

{RECIPIENT_NUMBER}

Adds the number of the recipient to the text messages

{RANDOM_NUMBER}

Adds a unique number to the text message

{GUID}

Adds a unique phrase to the text message

{MSG_BREAKER}

Divides the text into parts and sends it in multiple messages

Example

The sample code in C# and VB.Net :

Result :

See Also

SendMessageText2

SendMessageText2

Description

This method is to sent write a variety of text messages, you can use this method to send a list of peer to peer messages to a list of recipients.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

toNumbers

string array

An array of string type that contains the list of recipient's mobile number
The maximum length of array is 50
The length of toNumbers array must be equal with messageTexts array

messageTexts

string array

An array of string type that contains the list of message's text
The maximum length of array is 50
The length of messageTexts array must be equal with toNumbers array

fromNumbers

string array

An array of string type that determines your messages are sent through which line (if this array is sent as null the system will automatically select the lines)
The maximum length of array is 50

deleteContactAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the receiver information after sending the message (It might reduce the speed of sending)

deleteConversionAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the conversion after sending the message from the sender line (It might reduce the speed of sending)

interLineCommunication

boolean

If the value of this parameter is TRUE, the system will receive and send messages through other lines existing in your account after sending the message to the specified recipients (It might reduce the speed of sending)

numberOfInterLineCommunication

integer

If you have evaluated interLineCommunication parameter as TRUE, you can specify the number of sent and received messages in your lines in the system (if you enter the number zero the number will be specified automatically and based on the number of deliveries)

numberOfSendByEachLinePer24Hour

integer

With this parameter you can specify the number of messages sent within 24 hours by each line (if you enter the number zero the system will automatically control the number of sent messages by each line)
Note: The number of sent messages means the delivered messages
Note: The maximum number of messages allowed to be sent by each line is 30 in 24 hours and in case of sending more messages you might be blocked by Telegram

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of SentMessageResult class that contains information about each recipient.

The length of the array is equal to the length of input parameter toNumbers.

SentMessageResult Members:

Member Name Type Description

FromNumber

string

The number through which the messages have been sent

ToNumber

string

Recipient number

MessageText

string

The final text message received by the recipient

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

You can use the following variables in your message that will change the text per recipient automatically :

Variable Description

{SHORT_UTC_DATE}

Adds the date to the text message
The date will be short based on UTC
Example: "06.15.2008"

{LONG_UTC_DATE}

Adds the date to the text message
The date will be complete based on UTC
Example: "Sunday, June 15, 2008"

{SHORT_UTC_TIME}

Adds the time to the text message
The time will be short based on UTC
Example: "9:15 PM"

{LONG_UTC_TIME}

Adds the time to the text message
The time will be complete based on UTC
Example: "9:15:07 PM"

{FULL_UTC_DATE_TIME}

Adds the date and time to the text message
The date and time will be in AD and based on UTC
Example: "Sunday, June 15, 2008 9:15:07 PM"

{SHORT_SHAMSI_DATE}

Adds the date to the text message
The date will be in Solar year and based on Iranian standard
The short format will be "03/01/1394"

{LONG_SHAMSI_DATE}

Adds the date to the text message
The date will be in Solar year and based on Iranian standard
The full format will be "جمعه، سوم فروردین سال 1394"

{SHORT_SHAMSI_TIME}

Adds the time to the text message
The time will be based on Iranian standard
The short format will be "9:15 PM"

{LONG_SHAMSI_TIME}

Adds the time to the text message
The time will be based on Iranian standard
The full format will be "9:15:07 PM"

{RECIPIENT_NUMBER}

Adds the number of the recipient to the text messages

{RANDOM_NUMBER}

Adds a unique number to the text message

{GUID}

Adds a unique phrase to the text message

{MSG_BREAKER}

Divides the text into parts and sends it in multiple messages

Example

The sample code in C# and VB.Net :

Result :

See Also

SendMessageText

SendMessagePhoto

Description

This method is used to send a variety of images, using this method you can send an image to a list of your recipients.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

toNumbers

string array

An array of string type that contains the list of recipient's mobile number
The maximum length of array is 50

fileId

integer

To send the image file you must upload the file through the UploadFile function to Telegram and after uploading the system will assign an ID for your intended file
Enter the ID in this field

fileExt

string

The image file extension
Example: .png

fromNumbers

string array

An array of string type that determines your messages are sent through which line (if this array is sent as null the system will automatically select the lines)
The maximum length of array is 50

deleteContactAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the receiver information after sending the message (It might reduce the speed of sending)

deleteConversionAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the conversion after sending the message from the sender line (It might reduce the speed of sending)

interLineCommunication

boolean

If the value of this parameter is TRUE, the system will receive and send messages through other lines existing in your account after sending the message to the specified recipients (It might reduce the speed of sending)

numberOfInterLineCommunication

integer

If you have evaluated interLineCommunication parameter as TRUE, you can specify the number of sent and received messages in your lines in the system (if you enter the number zero the number will be specified automatically and based on the number of deliveries)

numberOfSendByEachLinePer24Hour

integer

With this parameter you can specify the number of messages sent within 24 hours by each line (if you enter the number zero the system will automatically control the number of sent messages by each line)
Note: The number of sent messages means the delivered messages
Note: The maximum number of messages allowed to be sent by each line is 30 in 24 hours and in case of sending more messages you might be blocked by Telegram

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of SentMessageResult class that contains information about each recipient.

The length of the array is equal to the length of input parameter toNumbers.

SentMessageResult Members:

Member Name Type Description

FromNumber

string

The number through which the messages have been sent

ToNumber

string

Recipient number

MessageText

string

Information on the sent file with the following format:
[photo message][file id:{file.ID}][file name:{file.FileName}]

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

--------------------------

Example

The sample code in C# and VB.Net :

Result :

See Also

UploadFile

SendMessageAudio

Description

This method is used to send a variety of voice messages, using this method you can send a voice message to a list of your recipients.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

toNumbers

string array

An array of string type that contains the list of recipient's mobile number
The maximum length of array is 50

fileId

integer

To send the voice message you must upload the file through the UploadFile function to Telegram and after uploading the system will assign an ID for your intended file
Enter the ID in this field

fileExt

string

The audio file extension
Example: .mp3

duration

integer

The audio file length in seconds

fromNumbers

string array

An array of string type that determines your messages are sent through which line (if this array is sent as null the system will automatically select the lines)
The maximum length of array is 50

deleteContactAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the receiver information after sending the message (It might reduce the speed of sending)

deleteConversionAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the conversion after sending the message from the sender line (It might reduce the speed of sending)

interLineCommunication

boolean

If the value of this parameter is TRUE, the system will receive and send messages through other lines existing in your account after sending the message to the specified recipients (It might reduce the speed of sending)

numberOfInterLineCommunication

integer

If you have evaluated interLineCommunication parameter as TRUE, you can specify the number of sent and received messages in your lines in the system (if you enter the number zero the number will be specified automatically and based on the number of deliveries)

numberOfSendByEachLinePer24Hour

integer

With this parameter you can specify the number of messages sent within 24 hours by each line (if you enter the number zero the system will automatically control the number of sent messages by each line)
Note: The number of sent messages means the delivered messages
Note: The maximum number of messages allowed to be sent by each line is 30 in 24 hours and in case of sending more messages you might be blocked by Telegram

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of SentMessageResult class that contains information about each recipient.

The length of the array is equal to the length of input parameter toNumbers.

SentMessageResult Members:

Member Name Type Description

FromNumber

string

The number through which the messages have been sent

ToNumber

string

Recipient number

MessageText

string

Information on the sent file with the following format:
[audio message][file id:{file.ID}][file name:{file.FileName}]

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

--------------------------

Example

The sample code in C# and VB.Net :

Result :

See Also

UploadFile

SendMessageVideo

Description

This method is used to send a variety of video messages, using this method you can send a video message to a list of your recipients.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

toNumbers

string array

An array of string type that contains the list of recipient's mobile number
The maximum length of array is 50

fileId

integer

To send the video file you must upload the file through the UploadFile function to Telegram and after uploading the system will assign an ID for your intended file
Enter the ID in this field

fileExt

string

The video file extension
Example: .mp4

duration

integer

The video file length in seconds

width

integer

The width of video in pixel

heigh

integer

The height of video in pixel

fromNumbers

string array

An array of string type that determines your messages are sent through which line (if this array is sent as null the system will automatically select the lines)
The maximum length of array is 50

deleteContactAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the receiver information after sending the message (It might reduce the speed of sending)

deleteConversionAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the conversion after sending the message from the sender line (It might reduce the speed of sending)

interLineCommunication

boolean

If the value of this parameter is TRUE, the system will receive and send messages through other lines existing in your account after sending the message to the specified recipients (It might reduce the speed of sending)

numberOfInterLineCommunication

integer

If you have evaluated interLineCommunication parameter as TRUE, you can specify the number of sent and received messages in your lines in the system (if you enter the number zero the number will be specified automatically and based on the number of deliveries)

numberOfSendByEachLinePer24Hour

integer

With this parameter you can specify the number of messages sent within 24 hours by each line (if you enter the number zero the system will automatically control the number of sent messages by each line)
Note: The number of sent messages means the delivered messages
Note: The maximum number of messages allowed to be sent by each line is 30 in 24 hours and in case of sending more messages you might be blocked by Telegram

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of SentMessageResult class that contains information about each recipient.

The length of the array is equal to the length of input parameter toNumbers.

SentMessageResult Members:

Member Name Type Description

FromNumber

string

The number through which the messages have been sent

ToNumber

string

Recipient number

MessageText

string

Information on the sent file with the following format:
[video message][file id:{file.ID}][file name:{file.FileName}]

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

--------------------------

Example

The sample code in C# and VB.Net :

Result :

See Also

UploadFile

SendMessageDocument

Description

This method is used to send all types of documents and files, using this method you can send a file to a list of your recipients.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

toNumbers

string array

An array of string type that contains the list of recipient's mobile number
The maximum length of array is 50

fileId

integer

To send the file you must upload the file through the UploadFile function to Telegram and after uploading the system will assign an ID for your intended file
Enter the ID in this field

fileExt

string

The file extension
Example: .doc

fileName

string

File name

mimeType

string

File Type
Read more about mimeType

fromNumbers

string array

An array of string type that determines your messages are sent through which line (if this array is sent as null the system will automatically select the lines)
The maximum length of array is 50

deleteContactAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the receiver information after sending the message (It might reduce the speed of sending)

deleteConversionAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the conversion after sending the message from the sender line (It might reduce the speed of sending)

interLineCommunication

boolean

If the value of this parameter is TRUE, the system will receive and send messages through other lines existing in your account after sending the message to the specified recipients (It might reduce the speed of sending)

numberOfInterLineCommunication

integer

If you have evaluated interLineCommunication parameter as TRUE, you can specify the number of sent and received messages in your lines in the system (if you enter the number zero the number will be specified automatically and based on the number of deliveries)

numberOfSendByEachLinePer24Hour

integer

With this parameter you can specify the number of messages sent within 24 hours by each line (if you enter the number zero the system will automatically control the number of sent messages by each line)
Note: The number of sent messages means the delivered messages
Note: The maximum number of messages allowed to be sent by each line is 30 in 24 hours and in case of sending more messages you might be blocked by Telegram

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of SentMessageResult class that contains information about each recipient.

The length of the array is equal to the length of input parameter toNumbers.

SentMessageResult Members:

Member Name Type Description

FromNumber

string

The number through which the messages have been sent

ToNumber

string

Recipient number

MessageText

string

Information on the sent file with the following format:
[document message][file id:{file.ID}][file name:{file.FileName}]

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

--------------------------

Example

The sample code in C# and VB.Net :

Result :

See Also

UploadFile

SendMessagevCard

Description

This method is used to send vCard, using this method you can send a vCard to a list of your recipients.
vCard is a file format standard for electronic business cards. vCards are attached to your messages. They can contain first name, last name and phone number.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

toNumbers

string array

An array of string type that contains the list of recipient's mobile number
The maximum length of array is 50

contactFirstName

string

Name

contactLastName

string

Last Name

contactPhone

string

Telephone

fromNumbers

string array

An array of string type that determines your messages are sent through which line (if this array is sent as null the system will automatically select the lines)
The maximum length of array is 50

deleteContactAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the receiver information after sending the message (It might reduce the speed of sending)

deleteConversionAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the conversion after sending the message from the sender line (It might reduce the speed of sending)

interLineCommunication

boolean

If the value of this parameter is TRUE, the system will receive and send messages through other lines existing in your account after sending the message to the specified recipients (It might reduce the speed of sending)

numberOfInterLineCommunication

integer

If you have evaluated interLineCommunication parameter as TRUE, you can specify the number of sent and received messages in your lines in the system (if you enter the number zero the number will be specified automatically and based on the number of deliveries)

numberOfSendByEachLinePer24Hour

integer

With this parameter you can specify the number of messages sent within 24 hours by each line (if you enter the number zero the system will automatically control the number of sent messages by each line)
Note: The number of sent messages means the delivered messages
Note: The maximum number of messages allowed to be sent by each line is 30 in 24 hours and in case of sending more messages you might be blocked by Telegram

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of SentMessageResult class that contains information about each recipient.

The length of the array is equal to the length of input parameter toNumbers.

SentMessageResult Members:

Member Name Type Description

FromNumber

string

The number through which the messages have been sent

ToNumber

string

Recipient number

MessageText

string

Information on the sent vCard with the following format:
[vCard message][first name:{contactFirstName}][last name:{contactLastName}][phone:{contactPhone}]

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

--------------------------

Example

The sample code in C# and VB.Net :

Result :

See Also

--------------------------

SendMessageGeoPoint

Description

This method is used to send a geographical point on the world map, using this method you can send a point with specific latitude and longitude to a list of your recipients.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

toNumbers

string array

An array of string type that contains the list of recipient's mobile number
The maximum length of array is 50

lat

double

Latitude

lon

double

Longitude

fromNumbers

string array

An array of string type that determines your messages are sent through which line (if this array is sent as null the system will automatically select the lines)
The maximum length of array is 50

deleteContactAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the receiver information after sending the message (It might reduce the speed of sending)

deleteConversionAfterSent

boolean

If the value of this parameter is TRUE, the system will remove the conversion after sending the message from the sender line (It might reduce the speed of sending)

interLineCommunication

boolean

If the value of this parameter is TRUE, the system will receive and send messages through other lines existing in your account after sending the message to the specified recipients (It might reduce the speed of sending)

numberOfInterLineCommunication

integer

If you have evaluated interLineCommunication parameter as TRUE, you can specify the number of sent and received messages in your lines in the system (if you enter the number zero the number will be specified automatically and based on the number of deliveries)

numberOfSendByEachLinePer24Hour

integer

With this parameter you can specify the number of messages sent within 24 hours by each line (if you enter the number zero the system will automatically control the number of sent messages by each line)
Note: The number of sent messages means the delivered messages
Note: The maximum number of messages allowed to be sent by each line is 30 in 24 hours and in case of sending more messages you might be blocked by Telegram

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of SentMessageResult class that contains information about each recipient.

The length of the array is equal to the length of input parameter toNumbers.

SentMessageResult Members:

Member Name Type Description

FromNumber

string

The number through which the messages have been sent

ToNumber

string

Recipient number

MessageText

string

Information on geographic point with the following format:
[geopoint message][lat:{lat}][lon:{lon}]

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

--------------------------

Example

The sample code in C# and VB.Net :

Result :

See Also

--------------------------

Get Sent Messages List

GetSentMessagesCount

Description

Using this method you can obtain the total number of sent and total number of delivered messages from your account.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is of the class GetSentMessagesCountResult that includes number of your sent messages.

GetSentMessagesCountResult Members:

Member Name Type Description

AllMessagesCount

integer

The total number of sent messages

NumberOfDelivery

integer

The total number of delivered messages

Notices

--------------------------

Example

The sample code in C# and VB.Net :

Result :

See Also

GetSentMessagesList

GetSentMessagesList

Description

Using this method you can obtain the list of your sent messages.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

filter

MessageFilter

Using this parameter you can determine which messages are returned
The input of this parameter is one of the following cases :
AllOfMessages : all set messages are returned
DeliveredMessages : only the delivered messages are returned
UnsentMessages : only the failed messages are returned

offset

integer

With this parameter you can specify that the message lists are returned from which row
Note: that this parameter should not be less than zero and more than the return value of GetSentMessagesCount method

count

integer

Using this parameter you can specify the number of returned messages
Note: that this parameter can not be less than zero and more than 500

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of GetSentMessagesListResult class, which includes the sent messages.

GetSentMessagesListResult Members:

Member Name Type Description

RecipientPhoneNumber

string

The recipient number

SenderPhoneNumber

string

The number the message is sent from

MessageText

string

The text of the message

SentDate

DateTime

The date of message sent based on the standard Time of UTC

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

Using this method you can receive the messages list based on the message type, note that in each calling of this method you can receive only 500 sent messages.
If the number of sent messages exceeds 500 you should use the For or While Do loop to receive all sent messages.
Note that your messages will be available only 7 days after being sent.

Example

The sample code in C# and VB.Net :

Result :

See Also

GetSentMessagesCount

GetSentMessagesCountByMessageText

Description

Using this method you can obtain the total number of sent and total number of delivered messages from your account that contain a certain text.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

text

string

Your intended text
Only the number of messages that containing this text will be returned

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is of the class GetSentMessagesCountResult that includes number of your sent messages.

GetSentMessagesCountResult Members:

Member Name Type Description

AllMessagesCount

integer

The total number of sent messages

NumberOfDelivery

integer

The total number of delivered messages

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetSentMessagesListByMessageText

GetSentMessagesListByMessageText

Description

Using this method you can obtain the list of your sent messages that contain a certain text.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

filter

MessageFilter

Using this parameter you can determine which messages are returned
The input of this parameter is one of the following cases :
AllOfMessages : all set messages are returned
DeliveredMessages : only the delivered messages are returned
UnsentMessages : only the failed messages are returned

text

string

Your intended text Only the list of messages that containing this text will be returned

offset

integer

With this parameter you can specify that the message lists are returned from which row
Note: that this parameter should not be less than zero and more than the return value of GetSentMessagesCountByMessageText method

count

integer

Using this parameter you can specify the number of returned messages
Note: that this parameter can not be less than zero and more than 500

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of GetSentMessagesListResult class, which includes the sent messages.

GetSentMessagesListResult Members:

Member Name Type Description

RecipientPhoneNumber

string

The recipient number

SenderPhoneNumber

string

The number the message is sent from

MessageText

string

The text of the message

SentDate

DateTime

The date of message sent based on the standard Time of UTC

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

Using this method you can receive the messages list based on the message type, note that in each calling of this method you can receive only 500 sent messages.
If the number of sent messages exceeds 500 you should use the For or While Do loop to receive all sent messages.
Note that your messages will be available only 7 days after being sent.

Example

The sample code in C# and VB.Net :

See Also

GetSentMessagesCountByMessageText

GetSentMessagesCountBySenderPhoneNumber

Description

Using this method you can obtain the total number of messages sent from a specific number, the number of messages will be returned based on the total number of messages and the number of delivered messages.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

phone

string

The sender number

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is of the class GetSentMessagesCountResult that includes number of your sent messages.

GetSentMessagesCountResult Members:

Member Name Type Description

AllMessagesCount

integer

The total number of sent messages

NumberOfDelivery

integer

The total number of delivered messages

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetSentMessagesListBySenderPhoneNumber

GetSentMessagesListBySenderPhoneNumber

Description

Using this method you can obtain the list of messages sent from a specific number.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

filter

MessageFilter

Using this parameter you can determine which messages are returned
The input of this parameter is one of the following cases :
AllOfMessages : all set messages are returned
DeliveredMessages : only the delivered messages are returned
UnsentMessages : only the failed messages are returned

phone

string

The sender number

offset

integer

With this parameter you can specify that the message lists are returned from which row
Note: that this parameter should not be less than zero and more than the return value of GetSentMessagesCountBySenderPhoneNumber method

count

integer

Using this parameter you can specify the number of returned messages
Note: that this parameter can not be less than zero and more than 500

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of GetSentMessagesListResult class, which includes the sent messages.

GetSentMessagesListResult Members:

Member Name Type Description

RecipientPhoneNumber

string

The recipient number

SenderPhoneNumber

string

The number the message is sent from

MessageText

string

The text of the message

SentDate

DateTime

The date of message sent based on the standard Time of UTC

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

Using this method you can receive the messages list based on the message type, note that in each calling of this method you can receive only 500 sent messages.
If the number of sent messages exceeds 500 you should use the For or While Do loop to receive all sent messages.
Note that your messages will be available only 7 days after being sent.

Example

The sample code in C# and VB.Net :

See Also

GetSentMessagesCountBySenderPhoneNumber

GetSentMessagesCountByRecipientPhoneNumber

Description

Using this method you can obtain the number of messages sent to a specific recipient, the number of messages will be returned based on the total number of messages and the number of delivered messages.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

phone

string

The recipient's number

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is of the class GetSentMessagesCountResult that includes number of your sent messages.

GetSentMessagesCountResult Members:

Member Name Type Description

AllMessagesCount

integer

The total number of sent messages

NumberOfDelivery

integer

The total number of delivered messages

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetSentMessagesListByRecipientPhoneNumber

GetSentMessagesListByRecipientPhoneNumber

Description

Using this method you can obtain the list of messages sent by your account to a specific recipient.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

filter

MessageFilter

Using this parameter you can determine which messages are returned
The input of this parameter is one of the following cases :
AllOfMessages : all set messages are returned
DeliveredMessages : only the delivered messages are returned
UnsentMessages : only the failed messages are returned

phone

string

The recipient's number

offset

integer

With this parameter you can specify that the message lists are returned from which row
Note: that this parameter should not be less than zero and more than the return value of GetSentMessagesCountByRecipientPhoneNumber method

count

integer

Using this parameter you can specify the number of returned messages
Note: that this parameter can not be less than zero and more than 500

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of GetSentMessagesListResult class, which includes the sent messages.

GetSentMessagesListResult Members:

Member Name Type Description

RecipientPhoneNumber

string

The recipient number

SenderPhoneNumber

string

The number the message is sent from

MessageText

string

The text of the message

SentDate

DateTime

The date of message sent based on the standard Time of UTC

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

Using this method you can receive the messages list based on the message type, note that in each calling of this method you can receive only 500 sent messages.
If the number of sent messages exceeds 500 you should use the For or While Do loop to receive all sent messages.
Note that your messages will be available only 7 days after being sent.

Example

The sample code in C# and VB.Net :

See Also

GetSentMessagesCountByRecipientPhoneNumber

GetSentMessagesCountBySentDate

Description

Using this method you can obtain the total number of messages sent from your account in a specified period, the number of messages will be returned based on the total number of messages and the number of delivered messages.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

fromDate

DateTime

The beginning of the period

toDate

DateTime

The end of the period

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is of the class GetSentMessagesCountResult that includes number of your sent messages.

GetSentMessagesCountResult Members:

Member Name Type Description

AllMessagesCount

integer

The total number of sent messages

NumberOfDelivery

integer

The total number of delivered messages

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetSentMessagesListBySentDate

GetSentMessagesListBySentDate

Description

Using this method you can obtain the list of messages sent within a specific period.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

filter

MessageFilter

Using this parameter you can determine which messages are returned
The input of this parameter is one of the following cases :
AllOfMessages : all set messages are returned
DeliveredMessages : only the delivered messages are returned
UnsentMessages : only the failed messages are returned

fromDate

DateTime

The beginning of the period

toDate

DateTime

The end of the period

offset

integer

With this parameter you can specify that the message lists are returned from which row
Note: that this parameter should not be less than zero and more than the return value of GetSentMessagesCountBySentDate method

count

integer

Using this parameter you can specify the number of returned messages
Note: that this parameter can not be less than zero and more than 500

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is an array of GetSentMessagesListResult class, which includes the sent messages.

GetSentMessagesListResult Members:

Member Name Type Description

RecipientPhoneNumber

string

The recipient number

SenderPhoneNumber

string

The number the message is sent from

MessageText

string

The text of the message

SentDate

DateTime

The date of message sent based on the standard Time of UTC

Delivery

boolean

If the value of this field is TRUE, it means that the message is received by the recipient and otherwise the message is not received the reason of which is in Error field

Error

string

If the message is not received by the recipient the reason is mentioned in this field

Notices

Using this method you can receive the messages list based on the message type, note that in each calling of this method you can receive only 500 sent messages.
If the number of sent messages exceeds 500 you should use the For or While Do loop to receive all sent messages.
Note that your messages will be available only 7 days after being sent.

Example

The sample code in C# and VB.Net :

See Also

GetSentMessagesCountBySentDate

Manage Your Lines

GetLinesCount

Description

Using this method you can obtain the number of lines registered in your account.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

filter

LineFilter

Using this parameter you can specify number of which lines should be returned to you
The acceptable values for this parameter :
AllOfLines : The number of total lines of the account are returned
LinesWithError : The number of lines with errors are returned
LinesWithWaitTime : The number of lines with wait time are returned
LinesWithoutErrorWaitTime : The number of lines without wait time and error are returned (the number of lines that are capable of sending message)

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value is Integer which includes number of lines in your account.

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetLinesList

GetLinesList

Description

Using this method you can obtain the list of lines registered in your account.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

offset

integer

With this parameter you can specify that the line lists are returned from which row
Note: that this parameter should not be less than zero and more than the return value of GetLinesCount method

count

integer

Using this parameter you can specify how many lines are returned after the specified row by offset parameter
Note: that this parameter can not be less than zero and more than 500

filter

LineFilter

Using this parameter you can specify which lines should be returned to you
The acceptable values for this parameter :
AllOfLines : Returns the list of total lines in the account
LinesWithError : Returns the list of lines with error
LinesWithWaitTime : Returns the list of lines with wait time
LinesWithoutErrorWaitTime : Returns the list of lines without error and wait time (list of the lines that are capable of sending message)

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is an array of the class GetLinesListResult including the list of registered lines in your account.

The length of this array equals the phones input parameter.

GetLinesListResult Members:

Member Name Type Description

Line

string

The number related to the current line

FirstName

string

The first name recorded in the profile of the current line

LastName

string

The last name recorded in the profile of the current line

AddDate

DateTime

Date of line registry in SocialAppsApi System

LastUse

DateTime

The date of the last messages sent by the line

NextUse

DateTime

The date after which the current line can send message again

TotalSentMessagesCount

integer

The total number of messages sent by the current line

LineError

string

If the current line is faced with error when sending the last message, the error text will be recorded in this field
Usually the lines blocked by Telegram or registered in Telegram by another user will face error while sending message
Note: The lines that are marked as erroneous lines cannot send message

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetLinesCount

GetLinesProfiles

Description

Using this method you can obtain the information about the profile of the lines registered in your account.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

phones

string array

A string type array that contains the list of numbers
The maximum length of the array is 50

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is an array of GetLinesProfilesResult class that includes information about the profile of each number.

The length of this array equals the phones input parameter.

GetLinesProfilesResult Members:

Member Name Type Description

Line

string

The number related to the current line

FirstName

string

The first name recorded in the profile of the current line

LastName

string

The last name recorded in the profile of the current line

Photo

byte array

The avatar recorded in the profile of the current line as a byte array

Error

string

If the information operation is faced with error, the reason is mentioned in this field

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetLinesCount
GetLinesList
UpdateLinesProfile

UpdateLinesProfile

Description

Using this method you can change the information of multiple line profiles in Telegram simultaneously.
Note that the recipients of your messages can see this information.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

phones

string array

A string type array that contains the list of numbers
The maximum length of the array is 50

profileFirstName

string

profile first name

profileLastName

string

profile last name

photoBytes

byte array

The array is byte type that contains information about a profile picture or avatar
This parameter can be transferred empty in which case only the name and surname will change

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is an array of UpdateLineProfileResult class that includes information about updating the profile of each line.

The length of this array equals the phones input parameter.

UpdateLineProfileResult Members:

Member Name Type Description

Line

string

The number related to the current line

ProfileUpdated

boolean

If the value of this field is TRUE, the current line information has been changed successfully

Error

string

If the update operations of the current line fail, the reason is mentioned in this field

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetLinesCount
GetLinesList
GetLinesProfiles

DeleteLines

Description

Using this method you can remove the lines listed in your account.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

phones

string array

A string type array that contains the list of numbers
The maximum length of the array is 50

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is an array of DeleteLinesResult class that includes information about deleting each number.

The length of this array equals the phones input parameter.

DeleteLinesResult Members:

Member Name Type Description

Line

string

The number to be deleted

LineDeleted

boolean

If the value of this field is TRUE, the current line has been deleted successfully

Error

string

If the deleting operation of the current line fails, the reason is mentioned in this field

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetLinesCount
GetLinesList

RemoveLinesError

Description

Lines that are faced with error when sending messages are marked automatically with ERROR flag.
Usually the lines blocked by Telegram or registered in Telegram by another user will face error while sending message.
Using this method you can restore the lines marked with ERROR flag by the system, into the original state.
Note: The lines that are marked with ERROR flag cannot be sent message.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

phones

string array

A string type array that contains the list of numbers
The maximum length of the array is 50

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is an array of RemoveLinesErrorResult class that contains information about deleting the error of each line.

The length of this array equals the phones input parameter.

RemoveLinesErrorResult Members:

Member Name Type Description

Line

string

The number related to the current line

LineErrorRemoved

boolean

If the value of this field is TRUE, the current line status has been restored successfully

Error

string

If the operation fails, the reason is mentioned in this field

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetLinesCount
GetLinesList

TerminateAllOtherSessions

Description

In Telegram it is possible to register the same line in different locations and on different devices.
Using this method you can terminate the rest of sessions of a line (except the current sessions) in Telegram.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

phones

string array

An array of string type that contains the list of numbers
The maximum length of array is 50

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is an array of TerminateAllOtherSessionsResult class that contains information about termination of other sessions.

The length of the array is equal to the length of input parameter phones.

TerminateAllOtherSessionsResult Members:

Member Name Type Description

Line

string

Current line's number

Result

string

If the value of this field is null or empty, the other sessions of the current line have been terminated successfully
otherwise an error has occurred in operation and the description of the error is in the same parameter

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

GetLinesCount
GetLinesList

Manage Your Files

UploadFile

Description

In order to send image, video, audio, etc. messages you need to upload the file to the Telegram server.
Using this method you can upload a file to the Telegram server.
After the completion of uploading an ID is assign to the file and using this ID you can send image, video and audio messages.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

fileName

string

The file name

fileBytes

byte array

The file contents

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is of integer type which is the ID of the uploaded file.

Notices

Note: The maximum size of the files is 512KB.
Note: The uploaded files are available for up to 7 days from the uploaded date.

Example

The sample code in C# and VB.Net :

See Also

SendMessagePhoto
SendMessageAudio
SendMessageVideo
SendMessageDocument

DownloadFile
DeleteFile
GetFilesList

DownloadFile

Description

Using this method, you can download your uploaded files.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

fileId

integer

The ID of the file to be downloaded

fileName

string

This parameter is of reference and return type, that includes the intended file name

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is an array of byte type that included the contents of the file.

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

UploadFile
GetFilesList

DeleteFile

Description

Using this method, you can delete your uploaded files from the server.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

fileId

integer

File ID

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is of boolean type and if the value is TRUE, the file is permanently deleted from the server.

Notices

--------------------------

Example

The sample code in C# and VB.Net :

See Also

UploadFile
GetFilesList

GetFilesList

Description

Using this method you can see the entire list of your uploaded files.

Syntax

Parameters

Parameter Name Type Description

apiHash

string Your API hash code

err

string

This parameter is in the form of reference and it is return and after calling the function the value of this parameter should be monitored and if the value is blank or null, the operation is successful otherwise an error has occurred in operation and the description of the error is in the same parameter

Return Value

The return value of this function is an array of GetFilesListResult class which includes the list of uploaded files.

GetFilesListResult Members:

Member Name Type Description

FileID

integer File ID

FileName

string

The file name determined when it is uploaded

AddDate

DateTime

The upload date based on standard time of UTC

FileSizeInByte

integer

File size in bytes

Notices

Note: The uploaded files are available for up to 7 days from the uploaded date.

Example

The sample code in C# and VB.Net :

Result :

See Also

UploadFile
DownloadFile
DeleteFile

Copyright © 2007 – 2015 Devesprit Ltd. All rights reserved.
SocialAppsApi.com | Help Center | Contact us